translated a handfull of strings and set the codeset to UTF-8 for the translations.
[xboard.git] / 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="xboard.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 PATCHLEVEL
641 VERSION
642 PRODUCT
643 ZIPPY_H
644 ZIPPY_O
645 CONF_LDFLAGS
646 CONF_CFLAGS
647 POST_XMULIB
648 PRE_XMULIB
649 POSUB
650 LTLIBINTL
651 LIBINTL
652 INTLLIBS
653 LTLIBICONV
654 LIBICONV
655 MSGMERGE
656 XGETTEXT
657 GMSGFMT
658 MSGFMT
659 USE_NLS
660 MKINSTALLDIRS
661 SET_MAKE
662 host_os
663 host_vendor
664 host_cpu
665 host
666 build_os
667 build_vendor
668 build_cpu
669 build
670 X_EXTRA_LIBS
671 X_LIBS
672 X_PRE_LIBS
673 X_CFLAGS
674 XMKMF
675 EGREP
676 GREP
677 XAW_LIBS
678 PERLPATH
679 AWKPATH
680 NROFFFLAGS
681 NROFF
682 RSH
683 LEXLIB
684 LEX_OUTPUT_ROOT
685 LEX
686 INSTALL_DATA
687 INSTALL_SCRIPT
688 INSTALL_PROGRAM
689 CPP
690 OBJEXT
691 EXEEXT
692 ac_ct_CC
693 CPPFLAGS
694 LDFLAGS
695 CFLAGS
696 CC
697 target_alias
698 host_alias
699 build_alias
700 LIBS
701 ECHO_T
702 ECHO_N
703 ECHO_C
704 DEFS
705 mandir
706 localedir
707 libdir
708 psdir
709 pdfdir
710 dvidir
711 htmldir
712 infodir
713 docdir
714 oldincludedir
715 includedir
716 localstatedir
717 sharedstatedir
718 sysconfdir
719 datadir
720 datarootdir
721 libexecdir
722 sbindir
723 bindir
724 program_transform_name
725 prefix
726 exec_prefix
727 PACKAGE_BUGREPORT
728 PACKAGE_STRING
729 PACKAGE_VERSION
730 PACKAGE_TARNAME
731 PACKAGE_NAME
732 PATH_SEPARATOR
733 SHELL'
734 ac_subst_files=''
735 ac_user_opts='
736 enable_option_checking
737 with_Xaw3d
738 with_x
739 enable_nls
740 with_gnu_ld
741 enable_rpath
742 with_libiconv_prefix
743 with_libintl_prefix
744 enable_xpm
745 enable_ptys
746 enable_zippy
747 enable_sigint
748 '
749       ac_precious_vars='build_alias
750 host_alias
751 target_alias
752 CC
753 CFLAGS
754 LDFLAGS
755 LIBS
756 CPPFLAGS
757 CPP
758 XMKMF'
759
760
761 # Initialize some variables set by options.
762 ac_init_help=
763 ac_init_version=false
764 ac_unrecognized_opts=
765 ac_unrecognized_sep=
766 # The variables have the same names as the options, with
767 # dashes changed to underlines.
768 cache_file=/dev/null
769 exec_prefix=NONE
770 no_create=
771 no_recursion=
772 prefix=NONE
773 program_prefix=NONE
774 program_suffix=NONE
775 program_transform_name=s,x,x,
776 silent=
777 site=
778 srcdir=
779 verbose=
780 x_includes=NONE
781 x_libraries=NONE
782
783 # Installation directory options.
784 # These are left unexpanded so users can "make install exec_prefix=/foo"
785 # and all the variables that are supposed to be based on exec_prefix
786 # by default will actually change.
787 # Use braces instead of parens because sh, perl, etc. also accept them.
788 # (The list follows the same order as the GNU Coding Standards.)
789 bindir='${exec_prefix}/bin'
790 sbindir='${exec_prefix}/sbin'
791 libexecdir='${exec_prefix}/libexec'
792 datarootdir='${prefix}/share'
793 datadir='${datarootdir}'
794 sysconfdir='${prefix}/etc'
795 sharedstatedir='${prefix}/com'
796 localstatedir='${prefix}/var'
797 includedir='${prefix}/include'
798 oldincludedir='/usr/include'
799 docdir='${datarootdir}/doc/${PACKAGE}'
800 infodir='${datarootdir}/info'
801 htmldir='${docdir}'
802 dvidir='${docdir}'
803 pdfdir='${docdir}'
804 psdir='${docdir}'
805 libdir='${exec_prefix}/lib'
806 localedir='${datarootdir}/locale'
807 mandir='${datarootdir}/man'
808
809 ac_prev=
810 ac_dashdash=
811 for ac_option
812 do
813   # If the previous option needs an argument, assign it.
814   if test -n "$ac_prev"; then
815     eval $ac_prev=\$ac_option
816     ac_prev=
817     continue
818   fi
819
820   case $ac_option in
821   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822   *)    ac_optarg=yes ;;
823   esac
824
825   # Accept the important Cygnus configure options, so we can diagnose typos.
826
827   case $ac_dashdash$ac_option in
828   --)
829     ac_dashdash=yes ;;
830
831   -bindir | --bindir | --bindi | --bind | --bin | --bi)
832     ac_prev=bindir ;;
833   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834     bindir=$ac_optarg ;;
835
836   -build | --build | --buil | --bui | --bu)
837     ac_prev=build_alias ;;
838   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839     build_alias=$ac_optarg ;;
840
841   -cache-file | --cache-file | --cache-fil | --cache-fi \
842   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843     ac_prev=cache_file ;;
844   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846     cache_file=$ac_optarg ;;
847
848   --config-cache | -C)
849     cache_file=config.cache ;;
850
851   -datadir | --datadir | --datadi | --datad)
852     ac_prev=datadir ;;
853   -datadir=* | --datadir=* | --datadi=* | --datad=*)
854     datadir=$ac_optarg ;;
855
856   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857   | --dataroo | --dataro | --datar)
858     ac_prev=datarootdir ;;
859   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861     datarootdir=$ac_optarg ;;
862
863   -disable-* | --disable-*)
864     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865     # Reject names that are not valid shell variable names.
866     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
868    { (exit 1); exit 1; }; }
869     ac_useropt_orig=$ac_useropt
870     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871     case $ac_user_opts in
872       *"
873 "enable_$ac_useropt"
874 "*) ;;
875       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876          ac_unrecognized_sep=', ';;
877     esac
878     eval enable_$ac_useropt=no ;;
879
880   -docdir | --docdir | --docdi | --doc | --do)
881     ac_prev=docdir ;;
882   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883     docdir=$ac_optarg ;;
884
885   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886     ac_prev=dvidir ;;
887   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888     dvidir=$ac_optarg ;;
889
890   -enable-* | --enable-*)
891     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892     # Reject names that are not valid shell variable names.
893     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
895    { (exit 1); exit 1; }; }
896     ac_useropt_orig=$ac_useropt
897     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898     case $ac_user_opts in
899       *"
900 "enable_$ac_useropt"
901 "*) ;;
902       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903          ac_unrecognized_sep=', ';;
904     esac
905     eval enable_$ac_useropt=\$ac_optarg ;;
906
907   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909   | --exec | --exe | --ex)
910     ac_prev=exec_prefix ;;
911   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913   | --exec=* | --exe=* | --ex=*)
914     exec_prefix=$ac_optarg ;;
915
916   -gas | --gas | --ga | --g)
917     # Obsolete; use --with-gas.
918     with_gas=yes ;;
919
920   -help | --help | --hel | --he | -h)
921     ac_init_help=long ;;
922   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923     ac_init_help=recursive ;;
924   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925     ac_init_help=short ;;
926
927   -host | --host | --hos | --ho)
928     ac_prev=host_alias ;;
929   -host=* | --host=* | --hos=* | --ho=*)
930     host_alias=$ac_optarg ;;
931
932   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933     ac_prev=htmldir ;;
934   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935   | --ht=*)
936     htmldir=$ac_optarg ;;
937
938   -includedir | --includedir | --includedi | --included | --include \
939   | --includ | --inclu | --incl | --inc)
940     ac_prev=includedir ;;
941   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942   | --includ=* | --inclu=* | --incl=* | --inc=*)
943     includedir=$ac_optarg ;;
944
945   -infodir | --infodir | --infodi | --infod | --info | --inf)
946     ac_prev=infodir ;;
947   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948     infodir=$ac_optarg ;;
949
950   -libdir | --libdir | --libdi | --libd)
951     ac_prev=libdir ;;
952   -libdir=* | --libdir=* | --libdi=* | --libd=*)
953     libdir=$ac_optarg ;;
954
955   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956   | --libexe | --libex | --libe)
957     ac_prev=libexecdir ;;
958   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959   | --libexe=* | --libex=* | --libe=*)
960     libexecdir=$ac_optarg ;;
961
962   -localedir | --localedir | --localedi | --localed | --locale)
963     ac_prev=localedir ;;
964   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965     localedir=$ac_optarg ;;
966
967   -localstatedir | --localstatedir | --localstatedi | --localstated \
968   | --localstate | --localstat | --localsta | --localst | --locals)
969     ac_prev=localstatedir ;;
970   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972     localstatedir=$ac_optarg ;;
973
974   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975     ac_prev=mandir ;;
976   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977     mandir=$ac_optarg ;;
978
979   -nfp | --nfp | --nf)
980     # Obsolete; use --without-fp.
981     with_fp=no ;;
982
983   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984   | --no-cr | --no-c | -n)
985     no_create=yes ;;
986
987   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989     no_recursion=yes ;;
990
991   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993   | --oldin | --oldi | --old | --ol | --o)
994     ac_prev=oldincludedir ;;
995   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998     oldincludedir=$ac_optarg ;;
999
1000   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001     ac_prev=prefix ;;
1002   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003     prefix=$ac_optarg ;;
1004
1005   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006   | --program-pre | --program-pr | --program-p)
1007     ac_prev=program_prefix ;;
1008   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010     program_prefix=$ac_optarg ;;
1011
1012   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013   | --program-suf | --program-su | --program-s)
1014     ac_prev=program_suffix ;;
1015   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017     program_suffix=$ac_optarg ;;
1018
1019   -program-transform-name | --program-transform-name \
1020   | --program-transform-nam | --program-transform-na \
1021   | --program-transform-n | --program-transform- \
1022   | --program-transform | --program-transfor \
1023   | --program-transfo | --program-transf \
1024   | --program-trans | --program-tran \
1025   | --progr-tra | --program-tr | --program-t)
1026     ac_prev=program_transform_name ;;
1027   -program-transform-name=* | --program-transform-name=* \
1028   | --program-transform-nam=* | --program-transform-na=* \
1029   | --program-transform-n=* | --program-transform-=* \
1030   | --program-transform=* | --program-transfor=* \
1031   | --program-transfo=* | --program-transf=* \
1032   | --program-trans=* | --program-tran=* \
1033   | --progr-tra=* | --program-tr=* | --program-t=*)
1034     program_transform_name=$ac_optarg ;;
1035
1036   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037     ac_prev=pdfdir ;;
1038   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039     pdfdir=$ac_optarg ;;
1040
1041   -psdir | --psdir | --psdi | --psd | --ps)
1042     ac_prev=psdir ;;
1043   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044     psdir=$ac_optarg ;;
1045
1046   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047   | -silent | --silent | --silen | --sile | --sil)
1048     silent=yes ;;
1049
1050   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051     ac_prev=sbindir ;;
1052   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053   | --sbi=* | --sb=*)
1054     sbindir=$ac_optarg ;;
1055
1056   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058   | --sharedst | --shareds | --shared | --share | --shar \
1059   | --sha | --sh)
1060     ac_prev=sharedstatedir ;;
1061   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064   | --sha=* | --sh=*)
1065     sharedstatedir=$ac_optarg ;;
1066
1067   -site | --site | --sit)
1068     ac_prev=site ;;
1069   -site=* | --site=* | --sit=*)
1070     site=$ac_optarg ;;
1071
1072   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073     ac_prev=srcdir ;;
1074   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075     srcdir=$ac_optarg ;;
1076
1077   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078   | --syscon | --sysco | --sysc | --sys | --sy)
1079     ac_prev=sysconfdir ;;
1080   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082     sysconfdir=$ac_optarg ;;
1083
1084   -target | --target | --targe | --targ | --tar | --ta | --t)
1085     ac_prev=target_alias ;;
1086   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087     target_alias=$ac_optarg ;;
1088
1089   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090     verbose=yes ;;
1091
1092   -version | --version | --versio | --versi | --vers | -V)
1093     ac_init_version=: ;;
1094
1095   -with-* | --with-*)
1096     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097     # Reject names that are not valid shell variable names.
1098     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1100    { (exit 1); exit 1; }; }
1101     ac_useropt_orig=$ac_useropt
1102     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1103     case $ac_user_opts in
1104       *"
1105 "with_$ac_useropt"
1106 "*) ;;
1107       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1108          ac_unrecognized_sep=', ';;
1109     esac
1110     eval with_$ac_useropt=\$ac_optarg ;;
1111
1112   -without-* | --without-*)
1113     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1114     # Reject names that are not valid shell variable names.
1115     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1117    { (exit 1); exit 1; }; }
1118     ac_useropt_orig=$ac_useropt
1119     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120     case $ac_user_opts in
1121       *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125          ac_unrecognized_sep=', ';;
1126     esac
1127     eval with_$ac_useropt=no ;;
1128
1129   --x)
1130     # Obsolete; use --with-x.
1131     with_x=yes ;;
1132
1133   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134   | --x-incl | --x-inc | --x-in | --x-i)
1135     ac_prev=x_includes ;;
1136   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138     x_includes=$ac_optarg ;;
1139
1140   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142     ac_prev=x_libraries ;;
1143   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145     x_libraries=$ac_optarg ;;
1146
1147   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1148 Try \`$0 --help' for more information." >&2
1149    { (exit 1); exit 1; }; }
1150     ;;
1151
1152   *=*)
1153     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154     # Reject names that are not valid shell variable names.
1155     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157    { (exit 1); exit 1; }; }
1158     eval $ac_envvar=\$ac_optarg
1159     export $ac_envvar ;;
1160
1161   *)
1162     # FIXME: should be removed in autoconf 3.0.
1163     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167     ;;
1168
1169   esac
1170 done
1171
1172 if test -n "$ac_prev"; then
1173   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1175    { (exit 1); exit 1; }; }
1176 fi
1177
1178 if test -n "$ac_unrecognized_opts"; then
1179   case $enable_option_checking in
1180     no) ;;
1181     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1182    { (exit 1); exit 1; }; } ;;
1183     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1184   esac
1185 fi
1186
1187 # Check all directory arguments for consistency.
1188 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1189                 datadir sysconfdir sharedstatedir localstatedir includedir \
1190                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1191                 libdir localedir mandir
1192 do
1193   eval ac_val=\$$ac_var
1194   # Remove trailing slashes.
1195   case $ac_val in
1196     */ )
1197       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1198       eval $ac_var=\$ac_val;;
1199   esac
1200   # Be sure to have absolute directory names.
1201   case $ac_val in
1202     [\\/$]* | ?:[\\/]* )  continue;;
1203     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1204   esac
1205   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1206    { (exit 1); exit 1; }; }
1207 done
1208
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1212 build=$build_alias
1213 host=$host_alias
1214 target=$target_alias
1215
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x; then
1218   if test "x$build_alias" = x; then
1219     cross_compiling=maybe
1220     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1221     If a cross compiler is detected then cross compile mode will be used." >&2
1222   elif test "x$build_alias" != "x$host_alias"; then
1223     cross_compiling=yes
1224   fi
1225 fi
1226
1227 ac_tool_prefix=
1228 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1229
1230 test "$silent" = yes && exec 6>/dev/null
1231
1232
1233 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di=`ls -di .` &&
1235 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1237    { (exit 1); exit 1; }; }
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1240    { (exit 1); exit 1; }; }
1241
1242
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245   ac_srcdir_defaulted=yes
1246   # Try the directory containing this script, then the parent directory.
1247   ac_confdir=`$as_dirname -- "$as_myself" ||
1248 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249          X"$as_myself" : 'X\(//\)[^/]' \| \
1250          X"$as_myself" : 'X\(//\)$' \| \
1251          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1252 $as_echo X"$as_myself" |
1253     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254             s//\1/
1255             q
1256           }
1257           /^X\(\/\/\)[^/].*/{
1258             s//\1/
1259             q
1260           }
1261           /^X\(\/\/\)$/{
1262             s//\1/
1263             q
1264           }
1265           /^X\(\/\).*/{
1266             s//\1/
1267             q
1268           }
1269           s/.*/./; q'`
1270   srcdir=$ac_confdir
1271   if test ! -r "$srcdir/$ac_unique_file"; then
1272     srcdir=..
1273   fi
1274 else
1275   ac_srcdir_defaulted=no
1276 fi
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1280    { (exit 1); exit 1; }; }
1281 fi
1282 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1283 ac_abs_confdir=`(
1284         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1285    { (exit 1); exit 1; }; }
1286         pwd)`
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1289   srcdir=.
1290 fi
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1294 case $srcdir in
1295 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296 esac
1297 for ac_var in $ac_precious_vars; do
1298   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299   eval ac_env_${ac_var}_value=\$${ac_var}
1300   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302 done
1303
1304 #
1305 # Report the --help message.
1306 #
1307 if test "$ac_init_help" = "long"; then
1308   # Omit some internal or obsolete options to make the list less imposing.
1309   # This message is too long to be a string in the A/UX 3.1 sh.
1310   cat <<_ACEOF
1311 \`configure' configures this package to adapt to many kinds of systems.
1312
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1314
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE.  See below for descriptions of some of the useful variables.
1317
1318 Defaults for the options are specified in brackets.
1319
1320 Configuration:
1321   -h, --help              display this help and exit
1322       --help=short        display options specific to this package
1323       --help=recursive    display the short help of all the included packages
1324   -V, --version           display version information and exit
1325   -q, --quiet, --silent   do not print \`checking...' messages
1326       --cache-file=FILE   cache test results in FILE [disabled]
1327   -C, --config-cache      alias for \`--cache-file=config.cache'
1328   -n, --no-create         do not create output files
1329       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1330
1331 Installation directories:
1332   --prefix=PREFIX         install architecture-independent files in PREFIX
1333                           [$ac_default_prefix]
1334   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1335                           [PREFIX]
1336
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1341
1342 For better control, use the options below.
1343
1344 Fine tuning of the installation directories:
1345   --bindir=DIR            user executables [EPREFIX/bin]
1346   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1347   --libexecdir=DIR        program executables [EPREFIX/libexec]
1348   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1349   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1350   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1351   --libdir=DIR            object code libraries [EPREFIX/lib]
1352   --includedir=DIR        C header files [PREFIX/include]
1353   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1354   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1355   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1356   --infodir=DIR           info documentation [DATAROOTDIR/info]
1357   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1358   --mandir=DIR            man documentation [DATAROOTDIR/man]
1359   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1360   --htmldir=DIR           html documentation [DOCDIR]
1361   --dvidir=DIR            dvi documentation [DOCDIR]
1362   --pdfdir=DIR            pdf documentation [DOCDIR]
1363   --psdir=DIR             ps documentation [DOCDIR]
1364 _ACEOF
1365
1366   cat <<\_ACEOF
1367
1368 X features:
1369   --x-includes=DIR    X include files are in DIR
1370   --x-libraries=DIR   X library files are in DIR
1371
1372 System types:
1373   --build=BUILD     configure for building on BUILD [guessed]
1374   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1375 _ACEOF
1376 fi
1377
1378 if test -n "$ac_init_help"; then
1379
1380   cat <<\_ACEOF
1381
1382 Optional Features:
1383   --disable-option-checking  ignore unrecognized --enable/--with options
1384   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1385   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1386   --disable-nls           do not use Native Language Support
1387   --disable-rpath         do not hardcode runtime library paths
1388   --enable-xpm            libXpm will be used if found (default)
1389   --disable-xpm           libXpm will not be used
1390   --enable-ptys           force use of pseudo-ttys with child processes
1391   --disable-ptys          force use of pipes with child processes
1392   --enable-zippy          support interfacing a chess program to ICS (default)
1393   --disable-zippy         do not support interfacing a chess program to ICS
1394   --enable-sigint         sending SIGINT (^C) wakes up GNU Chess (default)
1395   --disable-sigint        typing a command wakes up GNU Chess
1396
1397 Optional Packages:
1398   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1399   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1400   --with-Xaw3d            use Xaw3d instead of Xaw
1401   --with-x                use the X Window System
1402   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1403   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1404   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1405   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1406   --without-libintl-prefix     don't search for libintl in includedir and libdir
1407
1408 Some influential environment variables:
1409   CC          C compiler command
1410   CFLAGS      C compiler flags
1411   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1412               nonstandard directory <lib dir>
1413   LIBS        libraries to pass to the linker, e.g. -l<library>
1414   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1415               you have headers in a nonstandard directory <include dir>
1416   CPP         C preprocessor
1417   XMKMF       Path to xmkmf, Makefile generator for X Window System
1418
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1421
1422 _ACEOF
1423 ac_status=$?
1424 fi
1425
1426 if test "$ac_init_help" = "recursive"; then
1427   # If there are subdirs, report their specific --help.
1428   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429     test -d "$ac_dir" ||
1430       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1431       continue
1432     ac_builddir=.
1433
1434 case "$ac_dir" in
1435 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *)
1437   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438   # A ".." for each directory in $ac_dir_suffix.
1439   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440   case $ac_top_builddir_sub in
1441   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1443   esac ;;
1444 esac
1445 ac_abs_top_builddir=$ac_pwd
1446 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447 # for backward compatibility:
1448 ac_top_builddir=$ac_top_build_prefix
1449
1450 case $srcdir in
1451   .)  # We are building in place.
1452     ac_srcdir=.
1453     ac_top_srcdir=$ac_top_builddir_sub
1454     ac_abs_top_srcdir=$ac_pwd ;;
1455   [\\/]* | ?:[\\/]* )  # Absolute name.
1456     ac_srcdir=$srcdir$ac_dir_suffix;
1457     ac_top_srcdir=$srcdir
1458     ac_abs_top_srcdir=$srcdir ;;
1459   *) # Relative name.
1460     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461     ac_top_srcdir=$ac_top_build_prefix$srcdir
1462     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1463 esac
1464 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1465
1466     cd "$ac_dir" || { ac_status=$?; continue; }
1467     # Check for guested configure.
1468     if test -f "$ac_srcdir/configure.gnu"; then
1469       echo &&
1470       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471     elif test -f "$ac_srcdir/configure"; then
1472       echo &&
1473       $SHELL "$ac_srcdir/configure" --help=recursive
1474     else
1475       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1476     fi || ac_status=$?
1477     cd "$ac_pwd" || { ac_status=$?; break; }
1478   done
1479 fi
1480
1481 test -n "$ac_init_help" && exit $ac_status
1482 if $ac_init_version; then
1483   cat <<\_ACEOF
1484 configure
1485 generated by GNU Autoconf 2.63
1486
1487 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1488 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1489 This configure script is free software; the Free Software Foundation
1490 gives unlimited permission to copy, distribute and modify it.
1491 _ACEOF
1492   exit
1493 fi
1494 cat >config.log <<_ACEOF
1495 This file contains any messages produced by compilers while
1496 running configure, to aid debugging if configure makes a mistake.
1497
1498 It was created by $as_me, which was
1499 generated by GNU Autoconf 2.63.  Invocation command line was
1500
1501   $ $0 $@
1502
1503 _ACEOF
1504 exec 5>>config.log
1505 {
1506 cat <<_ASUNAME
1507 ## --------- ##
1508 ## Platform. ##
1509 ## --------- ##
1510
1511 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1512 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1513 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1514 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1515 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1516
1517 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1518 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1519
1520 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1521 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1522 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1523 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1524 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1525 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1526 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1527
1528 _ASUNAME
1529
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 for as_dir in $PATH
1532 do
1533   IFS=$as_save_IFS
1534   test -z "$as_dir" && as_dir=.
1535   $as_echo "PATH: $as_dir"
1536 done
1537 IFS=$as_save_IFS
1538
1539 } >&5
1540
1541 cat >&5 <<_ACEOF
1542
1543
1544 ## ----------- ##
1545 ## Core tests. ##
1546 ## ----------- ##
1547
1548 _ACEOF
1549
1550
1551 # Keep a trace of the command line.
1552 # Strip out --no-create and --no-recursion so they do not pile up.
1553 # Strip out --silent because we don't want to record it for future runs.
1554 # Also quote any args containing shell meta-characters.
1555 # Make two passes to allow for proper duplicate-argument suppression.
1556 ac_configure_args=
1557 ac_configure_args0=
1558 ac_configure_args1=
1559 ac_must_keep_next=false
1560 for ac_pass in 1 2
1561 do
1562   for ac_arg
1563   do
1564     case $ac_arg in
1565     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1566     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1567     | -silent | --silent | --silen | --sile | --sil)
1568       continue ;;
1569     *\'*)
1570       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1571     esac
1572     case $ac_pass in
1573     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1574     2)
1575       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1576       if test $ac_must_keep_next = true; then
1577         ac_must_keep_next=false # Got value, back to normal.
1578       else
1579         case $ac_arg in
1580           *=* | --config-cache | -C | -disable-* | --disable-* \
1581           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1582           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1583           | -with-* | --with-* | -without-* | --without-* | --x)
1584             case "$ac_configure_args0 " in
1585               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1586             esac
1587             ;;
1588           -* ) ac_must_keep_next=true ;;
1589         esac
1590       fi
1591       ac_configure_args="$ac_configure_args '$ac_arg'"
1592       ;;
1593     esac
1594   done
1595 done
1596 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1597 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1598
1599 # When interrupted or exit'd, cleanup temporary files, and complete
1600 # config.log.  We remove comments because anyway the quotes in there
1601 # would cause problems or look ugly.
1602 # WARNING: Use '\'' to represent an apostrophe within the trap.
1603 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1604 trap 'exit_status=$?
1605   # Save into config.log some information that might help in debugging.
1606   {
1607     echo
1608
1609     cat <<\_ASBOX
1610 ## ---------------- ##
1611 ## Cache variables. ##
1612 ## ---------------- ##
1613 _ASBOX
1614     echo
1615     # The following way of writing the cache mishandles newlines in values,
1616 (
1617   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1618     eval ac_val=\$$ac_var
1619     case $ac_val in #(
1620     *${as_nl}*)
1621       case $ac_var in #(
1622       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1623 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1624       esac
1625       case $ac_var in #(
1626       _ | IFS | as_nl) ;; #(
1627       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1628       *) $as_unset $ac_var ;;
1629       esac ;;
1630     esac
1631   done
1632   (set) 2>&1 |
1633     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1634     *${as_nl}ac_space=\ *)
1635       sed -n \
1636         "s/'\''/'\''\\\\'\'''\''/g;
1637           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1638       ;; #(
1639     *)
1640       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1641       ;;
1642     esac |
1643     sort
1644 )
1645     echo
1646
1647     cat <<\_ASBOX
1648 ## ----------------- ##
1649 ## Output variables. ##
1650 ## ----------------- ##
1651 _ASBOX
1652     echo
1653     for ac_var in $ac_subst_vars
1654     do
1655       eval ac_val=\$$ac_var
1656       case $ac_val in
1657       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1658       esac
1659       $as_echo "$ac_var='\''$ac_val'\''"
1660     done | sort
1661     echo
1662
1663     if test -n "$ac_subst_files"; then
1664       cat <<\_ASBOX
1665 ## ------------------- ##
1666 ## File substitutions. ##
1667 ## ------------------- ##
1668 _ASBOX
1669       echo
1670       for ac_var in $ac_subst_files
1671       do
1672         eval ac_val=\$$ac_var
1673         case $ac_val in
1674         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1675         esac
1676         $as_echo "$ac_var='\''$ac_val'\''"
1677       done | sort
1678       echo
1679     fi
1680
1681     if test -s confdefs.h; then
1682       cat <<\_ASBOX
1683 ## ----------- ##
1684 ## confdefs.h. ##
1685 ## ----------- ##
1686 _ASBOX
1687       echo
1688       cat confdefs.h
1689       echo
1690     fi
1691     test "$ac_signal" != 0 &&
1692       $as_echo "$as_me: caught signal $ac_signal"
1693     $as_echo "$as_me: exit $exit_status"
1694   } >&5
1695   rm -f core *.core core.conftest.* &&
1696     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1697     exit $exit_status
1698 ' 0
1699 for ac_signal in 1 2 13 15; do
1700   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1701 done
1702 ac_signal=0
1703
1704 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1705 rm -f -r conftest* confdefs.h
1706
1707 # Predefined preprocessor variables.
1708
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_NAME "$PACKAGE_NAME"
1711 _ACEOF
1712
1713
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1716 _ACEOF
1717
1718
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1721 _ACEOF
1722
1723
1724 cat >>confdefs.h <<_ACEOF
1725 #define PACKAGE_STRING "$PACKAGE_STRING"
1726 _ACEOF
1727
1728
1729 cat >>confdefs.h <<_ACEOF
1730 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1731 _ACEOF
1732
1733
1734 # Let the site file select an alternate cache file if it wants to.
1735 # Prefer an explicitly selected file to automatically selected ones.
1736 ac_site_file1=NONE
1737 ac_site_file2=NONE
1738 if test -n "$CONFIG_SITE"; then
1739   ac_site_file1=$CONFIG_SITE
1740 elif test "x$prefix" != xNONE; then
1741   ac_site_file1=$prefix/share/config.site
1742   ac_site_file2=$prefix/etc/config.site
1743 else
1744   ac_site_file1=$ac_default_prefix/share/config.site
1745   ac_site_file2=$ac_default_prefix/etc/config.site
1746 fi
1747 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1748 do
1749   test "x$ac_site_file" = xNONE && continue
1750   if test -r "$ac_site_file"; then
1751     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1752 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1753     sed 's/^/| /' "$ac_site_file" >&5
1754     . "$ac_site_file"
1755   fi
1756 done
1757
1758 if test -r "$cache_file"; then
1759   # Some versions of bash will fail to source /dev/null (special
1760   # files actually), so we avoid doing that.
1761   if test -f "$cache_file"; then
1762     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1763 $as_echo "$as_me: loading cache $cache_file" >&6;}
1764     case $cache_file in
1765       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1766       *)                      . "./$cache_file";;
1767     esac
1768   fi
1769 else
1770   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1771 $as_echo "$as_me: creating cache $cache_file" >&6;}
1772   >$cache_file
1773 fi
1774
1775 # Check that the precious variables saved in the cache have kept the same
1776 # value.
1777 ac_cache_corrupted=false
1778 for ac_var in $ac_precious_vars; do
1779   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1780   eval ac_new_set=\$ac_env_${ac_var}_set
1781   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1782   eval ac_new_val=\$ac_env_${ac_var}_value
1783   case $ac_old_set,$ac_new_set in
1784     set,)
1785       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1786 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1787       ac_cache_corrupted=: ;;
1788     ,set)
1789       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1790 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1791       ac_cache_corrupted=: ;;
1792     ,);;
1793     *)
1794       if test "x$ac_old_val" != "x$ac_new_val"; then
1795         # differences in whitespace do not lead to failure.
1796         ac_old_val_w=`echo x $ac_old_val`
1797         ac_new_val_w=`echo x $ac_new_val`
1798         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1799           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1800 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1801           ac_cache_corrupted=:
1802         else
1803           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1804 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1805           eval $ac_var=\$ac_old_val
1806         fi
1807         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1808 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1809         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1810 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1811       fi;;
1812   esac
1813   # Pass precious variables to config.status.
1814   if test "$ac_new_set" = set; then
1815     case $ac_new_val in
1816     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1817     *) ac_arg=$ac_var=$ac_new_val ;;
1818     esac
1819     case " $ac_configure_args " in
1820       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1821       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1822     esac
1823   fi
1824 done
1825 if $ac_cache_corrupted; then
1826   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1828   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1829 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1830   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1831 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1832    { (exit 1); exit 1; }; }
1833 fi
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851 ac_ext=c
1852 ac_cpp='$CPP $CPPFLAGS'
1853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1856
1857
1858 ac_config_headers="$ac_config_headers config.h"
1859
1860
1861 PRODUCT=xboard
1862 VERSION=4.2
1863 PATCHLEVEL=pre8
1864
1865 if test -z "$CFLAGS" ; then
1866   CFLAGS=" "
1867 fi
1868 ac_ext=c
1869 ac_cpp='$CPP $CPPFLAGS'
1870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1873 if test -n "$ac_tool_prefix"; then
1874   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1875 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1876 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 $as_echo_n "checking for $ac_word... " >&6; }
1878 if test "${ac_cv_prog_CC+set}" = set; then
1879   $as_echo_n "(cached) " >&6
1880 else
1881   if test -n "$CC"; then
1882   ac_cv_prog_CC="$CC" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887   IFS=$as_save_IFS
1888   test -z "$as_dir" && as_dir=.
1889   for ac_exec_ext in '' $ac_executable_extensions; do
1890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1891     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1892     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893     break 2
1894   fi
1895 done
1896 done
1897 IFS=$as_save_IFS
1898
1899 fi
1900 fi
1901 CC=$ac_cv_prog_CC
1902 if test -n "$CC"; then
1903   { $as_echo "$as_me:$LINENO: result: $CC" >&5
1904 $as_echo "$CC" >&6; }
1905 else
1906   { $as_echo "$as_me:$LINENO: result: no" >&5
1907 $as_echo "no" >&6; }
1908 fi
1909
1910
1911 fi
1912 if test -z "$ac_cv_prog_CC"; then
1913   ac_ct_CC=$CC
1914   # Extract the first word of "gcc", so it can be a program name with args.
1915 set dummy gcc; ac_word=$2
1916 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1917 $as_echo_n "checking for $ac_word... " >&6; }
1918 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1919   $as_echo_n "(cached) " >&6
1920 else
1921   if test -n "$ac_ct_CC"; then
1922   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923 else
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 for as_dir in $PATH
1926 do
1927   IFS=$as_save_IFS
1928   test -z "$as_dir" && as_dir=.
1929   for ac_exec_ext in '' $ac_executable_extensions; do
1930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1931     ac_cv_prog_ac_ct_CC="gcc"
1932     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1933     break 2
1934   fi
1935 done
1936 done
1937 IFS=$as_save_IFS
1938
1939 fi
1940 fi
1941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1942 if test -n "$ac_ct_CC"; then
1943   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1944 $as_echo "$ac_ct_CC" >&6; }
1945 else
1946   { $as_echo "$as_me:$LINENO: result: no" >&5
1947 $as_echo "no" >&6; }
1948 fi
1949
1950   if test "x$ac_ct_CC" = x; then
1951     CC=""
1952   else
1953     case $cross_compiling:$ac_tool_warned in
1954 yes:)
1955 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
1956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1957 ac_tool_warned=yes ;;
1958 esac
1959     CC=$ac_ct_CC
1960   fi
1961 else
1962   CC="$ac_cv_prog_CC"
1963 fi
1964
1965 if test -z "$CC"; then
1966           if test -n "$ac_tool_prefix"; then
1967     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1968 set dummy ${ac_tool_prefix}cc; ac_word=$2
1969 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 $as_echo_n "checking for $ac_word... " >&6; }
1971 if test "${ac_cv_prog_CC+set}" = set; then
1972   $as_echo_n "(cached) " >&6
1973 else
1974   if test -n "$CC"; then
1975   ac_cv_prog_CC="$CC" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980   IFS=$as_save_IFS
1981   test -z "$as_dir" && as_dir=.
1982   for ac_exec_ext in '' $ac_executable_extensions; do
1983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1984     ac_cv_prog_CC="${ac_tool_prefix}cc"
1985     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986     break 2
1987   fi
1988 done
1989 done
1990 IFS=$as_save_IFS
1991
1992 fi
1993 fi
1994 CC=$ac_cv_prog_CC
1995 if test -n "$CC"; then
1996   { $as_echo "$as_me:$LINENO: result: $CC" >&5
1997 $as_echo "$CC" >&6; }
1998 else
1999   { $as_echo "$as_me:$LINENO: result: no" >&5
2000 $as_echo "no" >&6; }
2001 fi
2002
2003
2004   fi
2005 fi
2006 if test -z "$CC"; then
2007   # Extract the first word of "cc", so it can be a program name with args.
2008 set dummy cc; ac_word=$2
2009 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 $as_echo_n "checking for $ac_word... " >&6; }
2011 if test "${ac_cv_prog_CC+set}" = set; then
2012   $as_echo_n "(cached) " >&6
2013 else
2014   if test -n "$CC"; then
2015   ac_cv_prog_CC="$CC" # Let the user override the test.
2016 else
2017   ac_prog_rejected=no
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 for as_dir in $PATH
2020 do
2021   IFS=$as_save_IFS
2022   test -z "$as_dir" && as_dir=.
2023   for ac_exec_ext in '' $ac_executable_extensions; do
2024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2025     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2026        ac_prog_rejected=yes
2027        continue
2028      fi
2029     ac_cv_prog_CC="cc"
2030     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031     break 2
2032   fi
2033 done
2034 done
2035 IFS=$as_save_IFS
2036
2037 if test $ac_prog_rejected = yes; then
2038   # We found a bogon in the path, so make sure we never use it.
2039   set dummy $ac_cv_prog_CC
2040   shift
2041   if test $# != 0; then
2042     # We chose a different compiler from the bogus one.
2043     # However, it has the same basename, so the bogon will be chosen
2044     # first if we set CC to just the basename; use the full file name.
2045     shift
2046     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2047   fi
2048 fi
2049 fi
2050 fi
2051 CC=$ac_cv_prog_CC
2052 if test -n "$CC"; then
2053   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2054 $as_echo "$CC" >&6; }
2055 else
2056   { $as_echo "$as_me:$LINENO: result: no" >&5
2057 $as_echo "no" >&6; }
2058 fi
2059
2060
2061 fi
2062 if test -z "$CC"; then
2063   if test -n "$ac_tool_prefix"; then
2064   for ac_prog in cl.exe
2065   do
2066     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2068 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 $as_echo_n "checking for $ac_word... " >&6; }
2070 if test "${ac_cv_prog_CC+set}" = set; then
2071   $as_echo_n "(cached) " >&6
2072 else
2073   if test -n "$CC"; then
2074   ac_cv_prog_CC="$CC" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2078 do
2079   IFS=$as_save_IFS
2080   test -z "$as_dir" && as_dir=.
2081   for ac_exec_ext in '' $ac_executable_extensions; do
2082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2083     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2084     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085     break 2
2086   fi
2087 done
2088 done
2089 IFS=$as_save_IFS
2090
2091 fi
2092 fi
2093 CC=$ac_cv_prog_CC
2094 if test -n "$CC"; then
2095   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2096 $as_echo "$CC" >&6; }
2097 else
2098   { $as_echo "$as_me:$LINENO: result: no" >&5
2099 $as_echo "no" >&6; }
2100 fi
2101
2102
2103     test -n "$CC" && break
2104   done
2105 fi
2106 if test -z "$CC"; then
2107   ac_ct_CC=$CC
2108   for ac_prog in cl.exe
2109 do
2110   # Extract the first word of "$ac_prog", so it can be a program name with args.
2111 set dummy $ac_prog; ac_word=$2
2112 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 $as_echo_n "checking for $ac_word... " >&6; }
2114 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2115   $as_echo_n "(cached) " >&6
2116 else
2117   if test -n "$ac_ct_CC"; then
2118   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2122 do
2123   IFS=$as_save_IFS
2124   test -z "$as_dir" && as_dir=.
2125   for ac_exec_ext in '' $ac_executable_extensions; do
2126   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2127     ac_cv_prog_ac_ct_CC="$ac_prog"
2128     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129     break 2
2130   fi
2131 done
2132 done
2133 IFS=$as_save_IFS
2134
2135 fi
2136 fi
2137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2138 if test -n "$ac_ct_CC"; then
2139   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2140 $as_echo "$ac_ct_CC" >&6; }
2141 else
2142   { $as_echo "$as_me:$LINENO: result: no" >&5
2143 $as_echo "no" >&6; }
2144 fi
2145
2146
2147   test -n "$ac_ct_CC" && break
2148 done
2149
2150   if test "x$ac_ct_CC" = x; then
2151     CC=""
2152   else
2153     case $cross_compiling:$ac_tool_warned in
2154 yes:)
2155 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2157 ac_tool_warned=yes ;;
2158 esac
2159     CC=$ac_ct_CC
2160   fi
2161 fi
2162
2163 fi
2164
2165
2166 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2168 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2169 See \`config.log' for more details." >&5
2170 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2171 See \`config.log' for more details." >&2;}
2172    { (exit 1); exit 1; }; }; }
2173
2174 # Provide some information about the compiler.
2175 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2176 set X $ac_compile
2177 ac_compiler=$2
2178 { (ac_try="$ac_compiler --version >&5"
2179 case "(($ac_try" in
2180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2181   *) ac_try_echo=$ac_try;;
2182 esac
2183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2184 $as_echo "$ac_try_echo") >&5
2185   (eval "$ac_compiler --version >&5") 2>&5
2186   ac_status=$?
2187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2188   (exit $ac_status); }
2189 { (ac_try="$ac_compiler -v >&5"
2190 case "(($ac_try" in
2191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192   *) ac_try_echo=$ac_try;;
2193 esac
2194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2195 $as_echo "$ac_try_echo") >&5
2196   (eval "$ac_compiler -v >&5") 2>&5
2197   ac_status=$?
2198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199   (exit $ac_status); }
2200 { (ac_try="$ac_compiler -V >&5"
2201 case "(($ac_try" in
2202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203   *) ac_try_echo=$ac_try;;
2204 esac
2205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2206 $as_echo "$ac_try_echo") >&5
2207   (eval "$ac_compiler -V >&5") 2>&5
2208   ac_status=$?
2209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210   (exit $ac_status); }
2211
2212 cat >conftest.$ac_ext <<_ACEOF
2213 /* confdefs.h.  */
2214 _ACEOF
2215 cat confdefs.h >>conftest.$ac_ext
2216 cat >>conftest.$ac_ext <<_ACEOF
2217 /* end confdefs.h.  */
2218
2219 int
2220 main ()
2221 {
2222
2223   ;
2224   return 0;
2225 }
2226 _ACEOF
2227 ac_clean_files_save=$ac_clean_files
2228 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2229 # Try to create an executable without -o first, disregard a.out.
2230 # It will help us diagnose broken compilers, and finding out an intuition
2231 # of exeext.
2232 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2233 $as_echo_n "checking for C compiler default output file name... " >&6; }
2234 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2235
2236 # The possible output files:
2237 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2238
2239 ac_rmfiles=
2240 for ac_file in $ac_files
2241 do
2242   case $ac_file in
2243     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2244     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2245   esac
2246 done
2247 rm -f $ac_rmfiles
2248
2249 if { (ac_try="$ac_link_default"
2250 case "(($ac_try" in
2251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2252   *) ac_try_echo=$ac_try;;
2253 esac
2254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2255 $as_echo "$ac_try_echo") >&5
2256   (eval "$ac_link_default") 2>&5
2257   ac_status=$?
2258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259   (exit $ac_status); }; then
2260   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2261 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2262 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2263 # so that the user can short-circuit this test for compilers unknown to
2264 # Autoconf.
2265 for ac_file in $ac_files ''
2266 do
2267   test -f "$ac_file" || continue
2268   case $ac_file in
2269     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2270         ;;
2271     [ab].out )
2272         # We found the default executable, but exeext='' is most
2273         # certainly right.
2274         break;;
2275     *.* )
2276         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2277         then :; else
2278            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2279         fi
2280         # We set ac_cv_exeext here because the later test for it is not
2281         # safe: cross compilers may not add the suffix if given an `-o'
2282         # argument, so we may need to know it at that point already.
2283         # Even if this section looks crufty: it has the advantage of
2284         # actually working.
2285         break;;
2286     * )
2287         break;;
2288   esac
2289 done
2290 test "$ac_cv_exeext" = no && ac_cv_exeext=
2291
2292 else
2293   ac_file=''
2294 fi
2295
2296 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2297 $as_echo "$ac_file" >&6; }
2298 if test -z "$ac_file"; then
2299   $as_echo "$as_me: failed program was:" >&5
2300 sed 's/^/| /' conftest.$ac_ext >&5
2301
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: C compiler cannot create executables
2305 See \`config.log' for more details." >&5
2306 $as_echo "$as_me: error: C compiler cannot create executables
2307 See \`config.log' for more details." >&2;}
2308    { (exit 77); exit 77; }; }; }
2309 fi
2310
2311 ac_exeext=$ac_cv_exeext
2312
2313 # Check that the compiler produces executables we can run.  If not, either
2314 # the compiler is broken, or we cross compile.
2315 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2316 $as_echo_n "checking whether the C compiler works... " >&6; }
2317 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2318 # If not cross compiling, check that we can run a simple program.
2319 if test "$cross_compiling" != yes; then
2320   if { ac_try='./$ac_file'
2321   { (case "(($ac_try" in
2322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323   *) ac_try_echo=$ac_try;;
2324 esac
2325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2326 $as_echo "$ac_try_echo") >&5
2327   (eval "$ac_try") 2>&5
2328   ac_status=$?
2329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); }; }; then
2331     cross_compiling=no
2332   else
2333     if test "$cross_compiling" = maybe; then
2334         cross_compiling=yes
2335     else
2336         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2338 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2339 If you meant to cross compile, use \`--host'.
2340 See \`config.log' for more details." >&5
2341 $as_echo "$as_me: error: cannot run C compiled programs.
2342 If you meant to cross compile, use \`--host'.
2343 See \`config.log' for more details." >&2;}
2344    { (exit 1); exit 1; }; }; }
2345     fi
2346   fi
2347 fi
2348 { $as_echo "$as_me:$LINENO: result: yes" >&5
2349 $as_echo "yes" >&6; }
2350
2351 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2352 ac_clean_files=$ac_clean_files_save
2353 # Check that the compiler produces executables we can run.  If not, either
2354 # the compiler is broken, or we cross compile.
2355 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2356 $as_echo_n "checking whether we are cross compiling... " >&6; }
2357 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2358 $as_echo "$cross_compiling" >&6; }
2359
2360 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2361 $as_echo_n "checking for suffix of executables... " >&6; }
2362 if { (ac_try="$ac_link"
2363 case "(($ac_try" in
2364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2365   *) ac_try_echo=$ac_try;;
2366 esac
2367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2368 $as_echo "$ac_try_echo") >&5
2369   (eval "$ac_link") 2>&5
2370   ac_status=$?
2371   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }; then
2373   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2374 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2375 # work properly (i.e., refer to `conftest.exe'), while it won't with
2376 # `rm'.
2377 for ac_file in conftest.exe conftest conftest.*; do
2378   test -f "$ac_file" || continue
2379   case $ac_file in
2380     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2381     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2382           break;;
2383     * ) break;;
2384   esac
2385 done
2386 else
2387   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2389 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2390 See \`config.log' for more details." >&5
2391 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2392 See \`config.log' for more details." >&2;}
2393    { (exit 1); exit 1; }; }; }
2394 fi
2395
2396 rm -f conftest$ac_cv_exeext
2397 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2398 $as_echo "$ac_cv_exeext" >&6; }
2399
2400 rm -f conftest.$ac_ext
2401 EXEEXT=$ac_cv_exeext
2402 ac_exeext=$EXEEXT
2403 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2404 $as_echo_n "checking for suffix of object files... " >&6; }
2405 if test "${ac_cv_objext+set}" = set; then
2406   $as_echo_n "(cached) " >&6
2407 else
2408   cat >conftest.$ac_ext <<_ACEOF
2409 /* confdefs.h.  */
2410 _ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h.  */
2414
2415 int
2416 main ()
2417 {
2418
2419   ;
2420   return 0;
2421 }
2422 _ACEOF
2423 rm -f conftest.o conftest.obj
2424 if { (ac_try="$ac_compile"
2425 case "(($ac_try" in
2426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427   *) ac_try_echo=$ac_try;;
2428 esac
2429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2430 $as_echo "$ac_try_echo") >&5
2431   (eval "$ac_compile") 2>&5
2432   ac_status=$?
2433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; then
2435   for ac_file in conftest.o conftest.obj conftest.*; do
2436   test -f "$ac_file" || continue;
2437   case $ac_file in
2438     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2439     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2440        break;;
2441   esac
2442 done
2443 else
2444   $as_echo "$as_me: failed program was:" >&5
2445 sed 's/^/| /' conftest.$ac_ext >&5
2446
2447 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2449 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2450 See \`config.log' for more details." >&5
2451 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2452 See \`config.log' for more details." >&2;}
2453    { (exit 1); exit 1; }; }; }
2454 fi
2455
2456 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2457 fi
2458 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2459 $as_echo "$ac_cv_objext" >&6; }
2460 OBJEXT=$ac_cv_objext
2461 ac_objext=$OBJEXT
2462 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2463 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2464 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2465   $as_echo_n "(cached) " >&6
2466 else
2467   cat >conftest.$ac_ext <<_ACEOF
2468 /* confdefs.h.  */
2469 _ACEOF
2470 cat confdefs.h >>conftest.$ac_ext
2471 cat >>conftest.$ac_ext <<_ACEOF
2472 /* end confdefs.h.  */
2473
2474 int
2475 main ()
2476 {
2477 #ifndef __GNUC__
2478        choke me
2479 #endif
2480
2481   ;
2482   return 0;
2483 }
2484 _ACEOF
2485 rm -f conftest.$ac_objext
2486 if { (ac_try="$ac_compile"
2487 case "(($ac_try" in
2488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489   *) ac_try_echo=$ac_try;;
2490 esac
2491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2492 $as_echo "$ac_try_echo") >&5
2493   (eval "$ac_compile") 2>conftest.er1
2494   ac_status=$?
2495   grep -v '^ *+' conftest.er1 >conftest.err
2496   rm -f conftest.er1
2497   cat conftest.err >&5
2498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); } && {
2500          test -z "$ac_c_werror_flag" ||
2501          test ! -s conftest.err
2502        } && test -s conftest.$ac_objext; then
2503   ac_compiler_gnu=yes
2504 else
2505   $as_echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2507
2508         ac_compiler_gnu=no
2509 fi
2510
2511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2513
2514 fi
2515 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2516 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2517 if test $ac_compiler_gnu = yes; then
2518   GCC=yes
2519 else
2520   GCC=
2521 fi
2522 ac_test_CFLAGS=${CFLAGS+set}
2523 ac_save_CFLAGS=$CFLAGS
2524 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2525 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2526 if test "${ac_cv_prog_cc_g+set}" = set; then
2527   $as_echo_n "(cached) " >&6
2528 else
2529   ac_save_c_werror_flag=$ac_c_werror_flag
2530    ac_c_werror_flag=yes
2531    ac_cv_prog_cc_g=no
2532    CFLAGS="-g"
2533    cat >conftest.$ac_ext <<_ACEOF
2534 /* confdefs.h.  */
2535 _ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h.  */
2539
2540 int
2541 main ()
2542 {
2543
2544   ;
2545   return 0;
2546 }
2547 _ACEOF
2548 rm -f conftest.$ac_objext
2549 if { (ac_try="$ac_compile"
2550 case "(($ac_try" in
2551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552   *) ac_try_echo=$ac_try;;
2553 esac
2554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2555 $as_echo "$ac_try_echo") >&5
2556   (eval "$ac_compile") 2>conftest.er1
2557   ac_status=$?
2558   grep -v '^ *+' conftest.er1 >conftest.err
2559   rm -f conftest.er1
2560   cat conftest.err >&5
2561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562   (exit $ac_status); } && {
2563          test -z "$ac_c_werror_flag" ||
2564          test ! -s conftest.err
2565        } && test -s conftest.$ac_objext; then
2566   ac_cv_prog_cc_g=yes
2567 else
2568   $as_echo "$as_me: failed program was:" >&5
2569 sed 's/^/| /' conftest.$ac_ext >&5
2570
2571         CFLAGS=""
2572       cat >conftest.$ac_ext <<_ACEOF
2573 /* confdefs.h.  */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h.  */
2578
2579 int
2580 main ()
2581 {
2582
2583   ;
2584   return 0;
2585 }
2586 _ACEOF
2587 rm -f conftest.$ac_objext
2588 if { (ac_try="$ac_compile"
2589 case "(($ac_try" in
2590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591   *) ac_try_echo=$ac_try;;
2592 esac
2593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2594 $as_echo "$ac_try_echo") >&5
2595   (eval "$ac_compile") 2>conftest.er1
2596   ac_status=$?
2597   grep -v '^ *+' conftest.er1 >conftest.err
2598   rm -f conftest.er1
2599   cat conftest.err >&5
2600   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601   (exit $ac_status); } && {
2602          test -z "$ac_c_werror_flag" ||
2603          test ! -s conftest.err
2604        } && test -s conftest.$ac_objext; then
2605   :
2606 else
2607   $as_echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2609
2610         ac_c_werror_flag=$ac_save_c_werror_flag
2611          CFLAGS="-g"
2612          cat >conftest.$ac_ext <<_ACEOF
2613 /* confdefs.h.  */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h.  */
2618
2619 int
2620 main ()
2621 {
2622
2623   ;
2624   return 0;
2625 }
2626 _ACEOF
2627 rm -f conftest.$ac_objext
2628 if { (ac_try="$ac_compile"
2629 case "(($ac_try" in
2630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631   *) ac_try_echo=$ac_try;;
2632 esac
2633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2634 $as_echo "$ac_try_echo") >&5
2635   (eval "$ac_compile") 2>conftest.er1
2636   ac_status=$?
2637   grep -v '^ *+' conftest.er1 >conftest.err
2638   rm -f conftest.er1
2639   cat conftest.err >&5
2640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641   (exit $ac_status); } && {
2642          test -z "$ac_c_werror_flag" ||
2643          test ! -s conftest.err
2644        } && test -s conftest.$ac_objext; then
2645   ac_cv_prog_cc_g=yes
2646 else
2647   $as_echo "$as_me: failed program was:" >&5
2648 sed 's/^/| /' conftest.$ac_ext >&5
2649
2650
2651 fi
2652
2653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2654 fi
2655
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657 fi
2658
2659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2660    ac_c_werror_flag=$ac_save_c_werror_flag
2661 fi
2662 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2663 $as_echo "$ac_cv_prog_cc_g" >&6; }
2664 if test "$ac_test_CFLAGS" = set; then
2665   CFLAGS=$ac_save_CFLAGS
2666 elif test $ac_cv_prog_cc_g = yes; then
2667   if test "$GCC" = yes; then
2668     CFLAGS="-g -O2"
2669   else
2670     CFLAGS="-g"
2671   fi
2672 else
2673   if test "$GCC" = yes; then
2674     CFLAGS="-O2"
2675   else
2676     CFLAGS=
2677   fi
2678 fi
2679 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2680 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2681 if test "${ac_cv_prog_cc_c89+set}" = set; then
2682   $as_echo_n "(cached) " >&6
2683 else
2684   ac_cv_prog_cc_c89=no
2685 ac_save_CC=$CC
2686 cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h.  */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h.  */
2692 #include <stdarg.h>
2693 #include <stdio.h>
2694 #include <sys/types.h>
2695 #include <sys/stat.h>
2696 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2697 struct buf { int x; };
2698 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2699 static char *e (p, i)
2700      char **p;
2701      int i;
2702 {
2703   return p[i];
2704 }
2705 static char *f (char * (*g) (char **, int), char **p, ...)
2706 {
2707   char *s;
2708   va_list v;
2709   va_start (v,p);
2710   s = g (p, va_arg (v,int));
2711   va_end (v);
2712   return s;
2713 }
2714
2715 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2716    function prototypes and stuff, but not '\xHH' hex character constants.
2717    These don't provoke an error unfortunately, instead are silently treated
2718    as 'x'.  The following induces an error, until -std is added to get
2719    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2720    array size at least.  It's necessary to write '\x00'==0 to get something
2721    that's true only with -std.  */
2722 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2723
2724 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2725    inside strings and character constants.  */
2726 #define FOO(x) 'x'
2727 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2728
2729 int test (int i, double x);
2730 struct s1 {int (*f) (int a);};
2731 struct s2 {int (*f) (double a);};
2732 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2733 int argc;
2734 char **argv;
2735 int
2736 main ()
2737 {
2738 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2739   ;
2740   return 0;
2741 }
2742 _ACEOF
2743 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2744         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2745 do
2746   CC="$ac_save_CC $ac_arg"
2747   rm -f conftest.$ac_objext
2748 if { (ac_try="$ac_compile"
2749 case "(($ac_try" in
2750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751   *) ac_try_echo=$ac_try;;
2752 esac
2753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2754 $as_echo "$ac_try_echo") >&5
2755   (eval "$ac_compile") 2>conftest.er1
2756   ac_status=$?
2757   grep -v '^ *+' conftest.er1 >conftest.err
2758   rm -f conftest.er1
2759   cat conftest.err >&5
2760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); } && {
2762          test -z "$ac_c_werror_flag" ||
2763          test ! -s conftest.err
2764        } && test -s conftest.$ac_objext; then
2765   ac_cv_prog_cc_c89=$ac_arg
2766 else
2767   $as_echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2769
2770
2771 fi
2772
2773 rm -f core conftest.err conftest.$ac_objext
2774   test "x$ac_cv_prog_cc_c89" != "xno" && break
2775 done
2776 rm -f conftest.$ac_ext
2777 CC=$ac_save_CC
2778
2779 fi
2780 # AC_CACHE_VAL
2781 case "x$ac_cv_prog_cc_c89" in
2782   x)
2783     { $as_echo "$as_me:$LINENO: result: none needed" >&5
2784 $as_echo "none needed" >&6; } ;;
2785   xno)
2786     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2787 $as_echo "unsupported" >&6; } ;;
2788   *)
2789     CC="$CC $ac_cv_prog_cc_c89"
2790     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2791 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2792 esac
2793
2794
2795 ac_ext=c
2796 ac_cpp='$CPP $CPPFLAGS'
2797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2800
2801 ac_ext=c
2802 ac_cpp='$CPP $CPPFLAGS'
2803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2806 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2807 $as_echo_n "checking how to run the C preprocessor... " >&6; }
2808 # On Suns, sometimes $CPP names a directory.
2809 if test -n "$CPP" && test -d "$CPP"; then
2810   CPP=
2811 fi
2812 if test -z "$CPP"; then
2813   if test "${ac_cv_prog_CPP+set}" = set; then
2814   $as_echo_n "(cached) " >&6
2815 else
2816       # Double quotes because CPP needs to be expanded
2817     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2818     do
2819       ac_preproc_ok=false
2820 for ac_c_preproc_warn_flag in '' yes
2821 do
2822   # Use a header file that comes with gcc, so configuring glibc
2823   # with a fresh cross-compiler works.
2824   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2825   # <limits.h> exists even on freestanding compilers.
2826   # On the NeXT, cc -E runs the code through the compiler's parser,
2827   # not just through cpp. "Syntax error" is here to catch this case.
2828   cat >conftest.$ac_ext <<_ACEOF
2829 /* confdefs.h.  */
2830 _ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h.  */
2834 #ifdef __STDC__
2835 # include <limits.h>
2836 #else
2837 # include <assert.h>
2838 #endif
2839                      Syntax error
2840 _ACEOF
2841 if { (ac_try="$ac_cpp conftest.$ac_ext"
2842 case "(($ac_try" in
2843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844   *) ac_try_echo=$ac_try;;
2845 esac
2846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2847 $as_echo "$ac_try_echo") >&5
2848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2849   ac_status=$?
2850   grep -v '^ *+' conftest.er1 >conftest.err
2851   rm -f conftest.er1
2852   cat conftest.err >&5
2853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); } >/dev/null && {
2855          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2856          test ! -s conftest.err
2857        }; then
2858   :
2859 else
2860   $as_echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863   # Broken: fails on valid input.
2864 continue
2865 fi
2866
2867 rm -f conftest.err conftest.$ac_ext
2868
2869   # OK, works on sane cases.  Now check whether nonexistent headers
2870   # can be detected and how.
2871   cat >conftest.$ac_ext <<_ACEOF
2872 /* confdefs.h.  */
2873 _ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h.  */
2877 #include <ac_nonexistent.h>
2878 _ACEOF
2879 if { (ac_try="$ac_cpp conftest.$ac_ext"
2880 case "(($ac_try" in
2881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882   *) ac_try_echo=$ac_try;;
2883 esac
2884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2885 $as_echo "$ac_try_echo") >&5
2886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2887   ac_status=$?
2888   grep -v '^ *+' conftest.er1 >conftest.err
2889   rm -f conftest.er1
2890   cat conftest.err >&5
2891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892   (exit $ac_status); } >/dev/null && {
2893          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2894          test ! -s conftest.err
2895        }; then
2896   # Broken: success on invalid input.
2897 continue
2898 else
2899   $as_echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2901
2902   # Passes both tests.
2903 ac_preproc_ok=:
2904 break
2905 fi
2906
2907 rm -f conftest.err conftest.$ac_ext
2908
2909 done
2910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2911 rm -f conftest.err conftest.$ac_ext
2912 if $ac_preproc_ok; then
2913   break
2914 fi
2915
2916     done
2917     ac_cv_prog_CPP=$CPP
2918
2919 fi
2920   CPP=$ac_cv_prog_CPP
2921 else
2922   ac_cv_prog_CPP=$CPP
2923 fi
2924 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
2925 $as_echo "$CPP" >&6; }
2926 ac_preproc_ok=false
2927 for ac_c_preproc_warn_flag in '' yes
2928 do
2929   # Use a header file that comes with gcc, so configuring glibc
2930   # with a fresh cross-compiler works.
2931   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2932   # <limits.h> exists even on freestanding compilers.
2933   # On the NeXT, cc -E runs the code through the compiler's parser,
2934   # not just through cpp. "Syntax error" is here to catch this case.
2935   cat >conftest.$ac_ext <<_ACEOF
2936 /* confdefs.h.  */
2937 _ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h.  */
2941 #ifdef __STDC__
2942 # include <limits.h>
2943 #else
2944 # include <assert.h>
2945 #endif
2946                      Syntax error
2947 _ACEOF
2948 if { (ac_try="$ac_cpp conftest.$ac_ext"
2949 case "(($ac_try" in
2950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951   *) ac_try_echo=$ac_try;;
2952 esac
2953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2954 $as_echo "$ac_try_echo") >&5
2955   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2956   ac_status=$?
2957   grep -v '^ *+' conftest.er1 >conftest.err
2958   rm -f conftest.er1
2959   cat conftest.err >&5
2960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961   (exit $ac_status); } >/dev/null && {
2962          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2963          test ! -s conftest.err
2964        }; then
2965   :
2966 else
2967   $as_echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970   # Broken: fails on valid input.
2971 continue
2972 fi
2973
2974 rm -f conftest.err conftest.$ac_ext
2975
2976   # OK, works on sane cases.  Now check whether nonexistent headers
2977   # can be detected and how.
2978   cat >conftest.$ac_ext <<_ACEOF
2979 /* confdefs.h.  */
2980 _ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h.  */
2984 #include <ac_nonexistent.h>
2985 _ACEOF
2986 if { (ac_try="$ac_cpp conftest.$ac_ext"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2992 $as_echo "$ac_try_echo") >&5
2993   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2994   ac_status=$?
2995   grep -v '^ *+' conftest.er1 >conftest.err
2996   rm -f conftest.er1
2997   cat conftest.err >&5
2998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999   (exit $ac_status); } >/dev/null && {
3000          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3001          test ! -s conftest.err
3002        }; then
3003   # Broken: success on invalid input.
3004 continue
3005 else
3006   $as_echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3008
3009   # Passes both tests.
3010 ac_preproc_ok=:
3011 break
3012 fi
3013
3014 rm -f conftest.err conftest.$ac_ext
3015
3016 done
3017 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3018 rm -f conftest.err conftest.$ac_ext
3019 if $ac_preproc_ok; then
3020   :
3021 else
3022   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3025 See \`config.log' for more details." >&5
3026 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3027 See \`config.log' for more details." >&2;}
3028    { (exit 1); exit 1; }; }; }
3029 fi
3030
3031 ac_ext=c
3032 ac_cpp='$CPP $CPPFLAGS'
3033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036
3037
3038 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
3039 $as_echo_n "checking for library containing strerror... " >&6; }
3040 if test "${ac_cv_search_strerror+set}" = set; then
3041   $as_echo_n "(cached) " >&6
3042 else
3043   ac_func_search_save_LIBS=$LIBS
3044 cat >conftest.$ac_ext <<_ACEOF
3045 /* confdefs.h.  */
3046 _ACEOF
3047 cat confdefs.h >>conftest.$ac_ext
3048 cat >>conftest.$ac_ext <<_ACEOF
3049 /* end confdefs.h.  */
3050
3051 /* Override any GCC internal prototype to avoid an error.
3052    Use char because int might match the return type of a GCC
3053    builtin and then its argument prototype would still apply.  */
3054 #ifdef __cplusplus
3055 extern "C"
3056 #endif
3057 char strerror ();
3058 int
3059 main ()
3060 {
3061 return strerror ();
3062   ;
3063   return 0;
3064 }
3065 _ACEOF
3066 for ac_lib in '' cposix; do
3067   if test -z "$ac_lib"; then
3068     ac_res="none required"
3069   else
3070     ac_res=-l$ac_lib
3071     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3072   fi
3073   rm -f conftest.$ac_objext conftest$ac_exeext
3074 if { (ac_try="$ac_link"
3075 case "(($ac_try" in
3076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3077   *) ac_try_echo=$ac_try;;
3078 esac
3079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3080 $as_echo "$ac_try_echo") >&5
3081   (eval "$ac_link") 2>conftest.er1
3082   ac_status=$?
3083   grep -v '^ *+' conftest.er1 >conftest.err
3084   rm -f conftest.er1
3085   cat conftest.err >&5
3086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087   (exit $ac_status); } && {
3088          test -z "$ac_c_werror_flag" ||
3089          test ! -s conftest.err
3090        } && test -s conftest$ac_exeext && {
3091          test "$cross_compiling" = yes ||
3092          $as_test_x conftest$ac_exeext
3093        }; then
3094   ac_cv_search_strerror=$ac_res
3095 else
3096   $as_echo "$as_me: failed program was:" >&5
3097 sed 's/^/| /' conftest.$ac_ext >&5
3098
3099
3100 fi
3101
3102 rm -rf conftest.dSYM
3103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3104       conftest$ac_exeext
3105   if test "${ac_cv_search_strerror+set}" = set; then
3106   break
3107 fi
3108 done
3109 if test "${ac_cv_search_strerror+set}" = set; then
3110   :
3111 else
3112   ac_cv_search_strerror=no
3113 fi
3114 rm conftest.$ac_ext
3115 LIBS=$ac_func_search_save_LIBS
3116 fi
3117 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3118 $as_echo "$ac_cv_search_strerror" >&6; }
3119 ac_res=$ac_cv_search_strerror
3120 if test "$ac_res" != no; then
3121   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3122
3123 fi
3124
3125 ac_aux_dir=
3126 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3127   if test -f "$ac_dir/install-sh"; then
3128     ac_aux_dir=$ac_dir
3129     ac_install_sh="$ac_aux_dir/install-sh -c"
3130     break
3131   elif test -f "$ac_dir/install.sh"; then
3132     ac_aux_dir=$ac_dir
3133     ac_install_sh="$ac_aux_dir/install.sh -c"
3134     break
3135   elif test -f "$ac_dir/shtool"; then
3136     ac_aux_dir=$ac_dir
3137     ac_install_sh="$ac_aux_dir/shtool install -c"
3138     break
3139   fi
3140 done
3141 if test -z "$ac_aux_dir"; then
3142   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
3143 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
3144    { (exit 1); exit 1; }; }
3145 fi
3146
3147 # These three variables are undocumented and unsupported,
3148 # and are intended to be withdrawn in a future Autoconf release.
3149 # They can cause serious problems if a builder's source tree is in a directory
3150 # whose full name contains unusual characters.
3151 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3152 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3153 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3154
3155
3156 # Find a good install program.  We prefer a C program (faster),
3157 # so one script is as good as another.  But avoid the broken or
3158 # incompatible versions:
3159 # SysV /etc/install, /usr/sbin/install
3160 # SunOS /usr/etc/install
3161 # IRIX /sbin/install
3162 # AIX /bin/install
3163 # AmigaOS /C/install, which installs bootblocks on floppy discs
3164 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3165 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3166 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3167 # OS/2's system install, which has a completely different semantic
3168 # ./install, which can be erroneously created by make from ./install.sh.
3169 # Reject install programs that cannot install multiple files.
3170 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3171 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3172 if test -z "$INSTALL"; then
3173 if test "${ac_cv_path_install+set}" = set; then
3174   $as_echo_n "(cached) " >&6
3175 else
3176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 for as_dir in $PATH
3178 do
3179   IFS=$as_save_IFS
3180   test -z "$as_dir" && as_dir=.
3181   # Account for people who put trailing slashes in PATH elements.
3182 case $as_dir/ in
3183   ./ | .// | /cC/* | \
3184   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3185   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3186   /usr/ucb/* ) ;;
3187   *)
3188     # OSF1 and SCO ODT 3.0 have their own names for install.
3189     # Don't use installbsd from OSF since it installs stuff as root
3190     # by default.
3191     for ac_prog in ginstall scoinst install; do
3192       for ac_exec_ext in '' $ac_executable_extensions; do
3193         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3194           if test $ac_prog = install &&
3195             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3196             # AIX install.  It has an incompatible calling convention.
3197             :
3198           elif test $ac_prog = install &&
3199             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3200             # program-specific install script used by HP pwplus--don't use.
3201             :
3202           else
3203             rm -rf conftest.one conftest.two conftest.dir
3204             echo one > conftest.one
3205             echo two > conftest.two
3206             mkdir conftest.dir
3207             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3208               test -s conftest.one && test -s conftest.two &&
3209               test -s conftest.dir/conftest.one &&
3210               test -s conftest.dir/conftest.two
3211             then
3212               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3213               break 3
3214             fi
3215           fi
3216         fi
3217       done
3218     done
3219     ;;
3220 esac
3221
3222 done
3223 IFS=$as_save_IFS
3224
3225 rm -rf conftest.one conftest.two conftest.dir
3226
3227 fi
3228   if test "${ac_cv_path_install+set}" = set; then
3229     INSTALL=$ac_cv_path_install
3230   else
3231     # As a last resort, use the slow shell script.  Don't cache a
3232     # value for INSTALL within a source directory, because that will
3233     # break other packages using the cache if that directory is
3234     # removed, or if the value is a relative name.
3235     INSTALL=$ac_install_sh
3236   fi
3237 fi
3238 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3239 $as_echo "$INSTALL" >&6; }
3240
3241 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3242 # It thinks the first close brace ends the variable substitution.
3243 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3244
3245 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3246
3247 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3248
3249 for ac_prog in lex flex
3250 do
3251   # Extract the first word of "$ac_prog", so it can be a program name with args.
3252 set dummy $ac_prog; ac_word=$2
3253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if test "${ac_cv_prog_LEX+set}" = set; then
3256   $as_echo_n "(cached) " >&6
3257 else
3258   if test -n "$LEX"; then
3259   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264   IFS=$as_save_IFS
3265   test -z "$as_dir" && as_dir=.
3266   for ac_exec_ext in '' $ac_executable_extensions; do
3267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3268     ac_cv_prog_LEX="$ac_prog"
3269     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270     break 2
3271   fi
3272 done
3273 done
3274 IFS=$as_save_IFS
3275
3276 fi
3277 fi
3278 LEX=$ac_cv_prog_LEX
3279 if test -n "$LEX"; then
3280   { $as_echo "$as_me:$LINENO: result: $LEX" >&5
3281 $as_echo "$LEX" >&6; }
3282 else
3283   { $as_echo "$as_me:$LINENO: result: no" >&5
3284 $as_echo "no" >&6; }
3285 fi
3286
3287
3288   test -n "$LEX" && break
3289 done
3290 test -n "$LEX" || LEX="lex_not_found"
3291
3292 if test "$LEX" != lex_not_found ; then
3293   for ac_prog in flex lex
3294 do
3295   # Extract the first word of "$ac_prog", so it can be a program name with args.
3296 set dummy $ac_prog; ac_word=$2
3297 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3298 $as_echo_n "checking for $ac_word... " >&6; }
3299 if test "${ac_cv_prog_LEX+set}" = set; then
3300   $as_echo_n "(cached) " >&6
3301 else
3302   if test -n "$LEX"; then
3303   ac_cv_prog_LEX="$LEX" # Let the user override the test.
3304 else
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3307 do
3308   IFS=$as_save_IFS
3309   test -z "$as_dir" && as_dir=.
3310   for ac_exec_ext in '' $ac_executable_extensions; do
3311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3312     ac_cv_prog_LEX="$ac_prog"
3313     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3314     break 2
3315   fi
3316 done
3317 done
3318 IFS=$as_save_IFS
3319
3320 fi
3321 fi
3322 LEX=$ac_cv_prog_LEX
3323 if test -n "$LEX"; then
3324   { $as_echo "$as_me:$LINENO: result: $LEX" >&5
3325 $as_echo "$LEX" >&6; }
3326 else
3327   { $as_echo "$as_me:$LINENO: result: no" >&5
3328 $as_echo "no" >&6; }
3329 fi
3330
3331
3332   test -n "$LEX" && break
3333 done
3334 test -n "$LEX" || LEX=":"
3335
3336 if test "x$LEX" != "x:"; then
3337   cat >conftest.l <<_ACEOF
3338 %%
3339 a { ECHO; }
3340 b { REJECT; }
3341 c { yymore (); }
3342 d { yyless (1); }
3343 e { yyless (input () != 0); }
3344 f { unput (yytext[0]); }
3345 . { BEGIN INITIAL; }
3346 %%
3347 #ifdef YYTEXT_POINTER
3348 extern char *yytext;
3349 #endif
3350 int
3351 main (void)
3352 {
3353   return ! yylex () + ! yywrap ();
3354 }
3355 _ACEOF
3356 { (ac_try="$LEX conftest.l"
3357 case "(($ac_try" in
3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359   *) ac_try_echo=$ac_try;;
3360 esac
3361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3362 $as_echo "$ac_try_echo") >&5
3363   (eval "$LEX conftest.l") 2>&5
3364   ac_status=$?
3365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); }
3367 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
3368 $as_echo_n "checking lex output file root... " >&6; }
3369 if test "${ac_cv_prog_lex_root+set}" = set; then
3370   $as_echo_n "(cached) " >&6
3371 else
3372
3373 if test -f lex.yy.c; then
3374   ac_cv_prog_lex_root=lex.yy
3375 elif test -f lexyy.c; then
3376   ac_cv_prog_lex_root=lexyy
3377 else
3378   { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3379 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3380    { (exit 1); exit 1; }; }
3381 fi
3382 fi
3383 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3384 $as_echo "$ac_cv_prog_lex_root" >&6; }
3385 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3386
3387 if test -z "${LEXLIB+set}"; then
3388   { $as_echo "$as_me:$LINENO: checking lex library" >&5
3389 $as_echo_n "checking lex library... " >&6; }
3390 if test "${ac_cv_lib_lex+set}" = set; then
3391   $as_echo_n "(cached) " >&6
3392 else
3393
3394     ac_save_LIBS=$LIBS
3395     ac_cv_lib_lex='none needed'
3396     for ac_lib in '' -lfl -ll; do
3397       LIBS="$ac_lib $ac_save_LIBS"
3398       cat >conftest.$ac_ext <<_ACEOF
3399 `cat $LEX_OUTPUT_ROOT.c`
3400 _ACEOF
3401 rm -f conftest.$ac_objext conftest$ac_exeext
3402 if { (ac_try="$ac_link"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3408 $as_echo "$ac_try_echo") >&5
3409   (eval "$ac_link") 2>conftest.er1
3410   ac_status=$?
3411   grep -v '^ *+' conftest.er1 >conftest.err
3412   rm -f conftest.er1
3413   cat conftest.err >&5
3414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415   (exit $ac_status); } && {
3416          test -z "$ac_c_werror_flag" ||
3417          test ! -s conftest.err
3418        } && test -s conftest$ac_exeext && {
3419          test "$cross_compiling" = yes ||
3420          $as_test_x conftest$ac_exeext
3421        }; then
3422   ac_cv_lib_lex=$ac_lib
3423 else
3424   $as_echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.$ac_ext >&5
3426
3427
3428 fi
3429
3430 rm -rf conftest.dSYM
3431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3432       conftest$ac_exeext conftest.$ac_ext
3433       test "$ac_cv_lib_lex" != 'none needed' && break
3434     done
3435     LIBS=$ac_save_LIBS
3436
3437 fi
3438 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
3439 $as_echo "$ac_cv_lib_lex" >&6; }
3440   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3441 fi
3442
3443
3444 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3445 $as_echo_n "checking whether yytext is a pointer... " >&6; }
3446 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3447   $as_echo_n "(cached) " >&6
3448 else
3449   # POSIX says lex can declare yytext either as a pointer or an array; the
3450 # default is implementation-dependent.  Figure out which it is, since
3451 # not all implementations provide the %pointer and %array declarations.
3452 ac_cv_prog_lex_yytext_pointer=no
3453 ac_save_LIBS=$LIBS
3454 LIBS="$LEXLIB $ac_save_LIBS"
3455 cat >conftest.$ac_ext <<_ACEOF
3456 #define YYTEXT_POINTER 1
3457 `cat $LEX_OUTPUT_ROOT.c`
3458 _ACEOF
3459 rm -f conftest.$ac_objext conftest$ac_exeext
3460 if { (ac_try="$ac_link"
3461 case "(($ac_try" in
3462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463   *) ac_try_echo=$ac_try;;
3464 esac
3465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3466 $as_echo "$ac_try_echo") >&5
3467   (eval "$ac_link") 2>conftest.er1
3468   ac_status=$?
3469   grep -v '^ *+' conftest.er1 >conftest.err
3470   rm -f conftest.er1
3471   cat conftest.err >&5
3472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); } && {
3474          test -z "$ac_c_werror_flag" ||
3475          test ! -s conftest.err
3476        } && test -s conftest$ac_exeext && {
3477          test "$cross_compiling" = yes ||
3478          $as_test_x conftest$ac_exeext
3479        }; then
3480   ac_cv_prog_lex_yytext_pointer=yes
3481 else
3482   $as_echo "$as_me: failed program was:" >&5
3483 sed 's/^/| /' conftest.$ac_ext >&5
3484
3485
3486 fi
3487
3488 rm -rf conftest.dSYM
3489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3490       conftest$ac_exeext conftest.$ac_ext
3491 LIBS=$ac_save_LIBS
3492
3493 fi
3494 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3495 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3496 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3497
3498 cat >>confdefs.h <<\_ACEOF
3499 #define YYTEXT_POINTER 1
3500 _ACEOF
3501
3502 fi
3503 rm -f conftest.l $LEX_OUTPUT_ROOT.c
3504
3505 fi
3506 fi
3507 for ac_prog in remsh rsh
3508 do
3509   # Extract the first word of "$ac_prog", so it can be a program name with args.
3510 set dummy $ac_prog; ac_word=$2
3511 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3512 $as_echo_n "checking for $ac_word... " >&6; }
3513 if test "${ac_cv_prog_RSH+set}" = set; then
3514   $as_echo_n "(cached) " >&6
3515 else
3516   if test -n "$RSH"; then
3517   ac_cv_prog_RSH="$RSH" # Let the user override the test.
3518 else
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3521 do
3522   IFS=$as_save_IFS
3523   test -z "$as_dir" && as_dir=.
3524   for ac_exec_ext in '' $ac_executable_extensions; do
3525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3526     ac_cv_prog_RSH="$ac_prog"
3527     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3528     break 2
3529   fi
3530 done
3531 done
3532 IFS=$as_save_IFS
3533
3534 fi
3535 fi
3536 RSH=$ac_cv_prog_RSH
3537 if test -n "$RSH"; then
3538   { $as_echo "$as_me:$LINENO: result: $RSH" >&5
3539 $as_echo "$RSH" >&6; }
3540 else
3541   { $as_echo "$as_me:$LINENO: result: no" >&5
3542 $as_echo "no" >&6; }
3543 fi
3544
3545
3546   test -n "$RSH" && break
3547 done
3548 test -n "$RSH" || RSH="rsh"
3549
3550 cat >>confdefs.h <<_ACEOF
3551 #define REMOTE_SHELL "$RSH"
3552 _ACEOF
3553
3554 # Extract the first word of "nroff", so it can be a program name with args.
3555 set dummy nroff; ac_word=$2
3556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if test "${ac_cv_prog_NROFF+set}" = set; then
3559   $as_echo_n "(cached) " >&6
3560 else
3561   if test -n "$NROFF"; then
3562   ac_cv_prog_NROFF="$NROFF" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3566 do
3567   IFS=$as_save_IFS
3568   test -z "$as_dir" && as_dir=.
3569   for ac_exec_ext in '' $ac_executable_extensions; do
3570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571     ac_cv_prog_NROFF="nroff -man"
3572     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573     break 2
3574   fi
3575 done
3576 done
3577 IFS=$as_save_IFS
3578
3579   test -z "$ac_cv_prog_NROFF" && ac_cv_prog_NROFF="cat"
3580 fi
3581 fi
3582 NROFF=$ac_cv_prog_NROFF
3583 if test -n "$NROFF"; then
3584   { $as_echo "$as_me:$LINENO: result: $NROFF" >&5
3585 $as_echo "$NROFF" >&6; }
3586 else
3587   { $as_echo "$as_me:$LINENO: result: no" >&5
3588 $as_echo "no" >&6; }
3589 fi
3590
3591
3592
3593 for ac_prog in awk mawk gawk nawk
3594 do
3595   # Extract the first word of "$ac_prog", so it can be a program name with args.
3596 set dummy $ac_prog; ac_word=$2
3597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3598 $as_echo_n "checking for $ac_word... " >&6; }
3599 if test "${ac_cv_path_AWKPATH+set}" = set; then
3600   $as_echo_n "(cached) " >&6
3601 else
3602   case $AWKPATH in
3603   [\\/]* | ?:[\\/]*)
3604   ac_cv_path_AWKPATH="$AWKPATH" # Let the user override the test with a path.
3605   ;;
3606   *)
3607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 for as_dir in $PATH
3609 do
3610   IFS=$as_save_IFS
3611   test -z "$as_dir" && as_dir=.
3612   for ac_exec_ext in '' $ac_executable_extensions; do
3613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3614     ac_cv_path_AWKPATH="$as_dir/$ac_word$ac_exec_ext"
3615     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3616     break 2
3617   fi
3618 done
3619 done
3620 IFS=$as_save_IFS
3621
3622   ;;
3623 esac
3624 fi
3625 AWKPATH=$ac_cv_path_AWKPATH
3626 if test -n "$AWKPATH"; then
3627   { $as_echo "$as_me:$LINENO: result: $AWKPATH" >&5
3628 $as_echo "$AWKPATH" >&6; }
3629 else
3630   { $as_echo "$as_me:$LINENO: result: no" >&5
3631 $as_echo "no" >&6; }
3632 fi
3633
3634
3635   test -n "$AWKPATH" && break
3636 done
3637
3638 for ac_prog in perl
3639 do
3640   # Extract the first word of "$ac_prog", so it can be a program name with args.
3641 set dummy $ac_prog; ac_word=$2
3642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3643 $as_echo_n "checking for $ac_word... " >&6; }
3644 if test "${ac_cv_path_PERLPATH+set}" = set; then
3645   $as_echo_n "(cached) " >&6
3646 else
3647   case $PERLPATH in
3648   [\\/]* | ?:[\\/]*)
3649   ac_cv_path_PERLPATH="$PERLPATH" # Let the user override the test with a path.
3650   ;;
3651   *)
3652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3654 do
3655   IFS=$as_save_IFS
3656   test -z "$as_dir" && as_dir=.
3657   for ac_exec_ext in '' $ac_executable_extensions; do
3658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659     ac_cv_path_PERLPATH="$as_dir/$ac_word$ac_exec_ext"
3660     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3661     break 2
3662   fi
3663 done
3664 done
3665 IFS=$as_save_IFS
3666
3667   ;;
3668 esac
3669 fi
3670 PERLPATH=$ac_cv_path_PERLPATH
3671 if test -n "$PERLPATH"; then
3672   { $as_echo "$as_me:$LINENO: result: $PERLPATH" >&5
3673 $as_echo "$PERLPATH" >&6; }
3674 else
3675   { $as_echo "$as_me:$LINENO: result: no" >&5
3676 $as_echo "no" >&6; }
3677 fi
3678
3679
3680   test -n "$PERLPATH" && break
3681 done
3682
3683
3684
3685 # Check whether --with-Xaw3d was given.
3686 if test "${with_Xaw3d+set}" = set; then
3687   withval=$with_Xaw3d; cat >>confdefs.h <<\_ACEOF
3688 #define USE_XAW3D 1
3689 _ACEOF
3690
3691    XAW_LIBS="-lXaw3d"
3692 else
3693   XAW_LIBS="-lXaw"
3694 fi
3695
3696
3697
3698
3699 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3700 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3701 if test "${ac_cv_path_GREP+set}" = set; then
3702   $as_echo_n "(cached) " >&6
3703 else
3704   if test -z "$GREP"; then
3705   ac_path_GREP_found=false
3706   # Loop through the user's path and test for each of PROGNAME-LIST
3707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3709 do
3710   IFS=$as_save_IFS
3711   test -z "$as_dir" && as_dir=.
3712   for ac_prog in grep ggrep; do
3713     for ac_exec_ext in '' $ac_executable_extensions; do
3714       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3715       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3716 # Check for GNU ac_path_GREP and select it if it is found.
3717   # Check for GNU $ac_path_GREP
3718 case `"$ac_path_GREP" --version 2>&1` in
3719 *GNU*)
3720   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3721 *)
3722   ac_count=0
3723   $as_echo_n 0123456789 >"conftest.in"
3724   while :
3725   do
3726     cat "conftest.in" "conftest.in" >"conftest.tmp"
3727     mv "conftest.tmp" "conftest.in"
3728     cp "conftest.in" "conftest.nl"
3729     $as_echo 'GREP' >> "conftest.nl"
3730     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3732     ac_count=`expr $ac_count + 1`
3733     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3734       # Best one so far, save it but keep looking for a better one
3735       ac_cv_path_GREP="$ac_path_GREP"
3736       ac_path_GREP_max=$ac_count
3737     fi
3738     # 10*(2^10) chars as input seems more than enough
3739     test $ac_count -gt 10 && break
3740   done
3741   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3742 esac
3743
3744       $ac_path_GREP_found && break 3
3745     done
3746   done
3747 done
3748 IFS=$as_save_IFS
3749   if test -z "$ac_cv_path_GREP"; then
3750     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3751 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3752    { (exit 1); exit 1; }; }
3753   fi
3754 else
3755   ac_cv_path_GREP=$GREP
3756 fi
3757
3758 fi
3759 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3760 $as_echo "$ac_cv_path_GREP" >&6; }
3761  GREP="$ac_cv_path_GREP"
3762
3763
3764 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3765 $as_echo_n "checking for egrep... " >&6; }
3766 if test "${ac_cv_path_EGREP+set}" = set; then
3767   $as_echo_n "(cached) " >&6
3768 else
3769   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3770    then ac_cv_path_EGREP="$GREP -E"
3771    else
3772      if test -z "$EGREP"; then
3773   ac_path_EGREP_found=false
3774   # Loop through the user's path and test for each of PROGNAME-LIST
3775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3777 do
3778   IFS=$as_save_IFS
3779   test -z "$as_dir" && as_dir=.
3780   for ac_prog in egrep; do
3781     for ac_exec_ext in '' $ac_executable_extensions; do
3782       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3783       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3784 # Check for GNU ac_path_EGREP and select it if it is found.
3785   # Check for GNU $ac_path_EGREP
3786 case `"$ac_path_EGREP" --version 2>&1` in
3787 *GNU*)
3788   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3789 *)
3790   ac_count=0
3791   $as_echo_n 0123456789 >"conftest.in"
3792   while :
3793   do
3794     cat "conftest.in" "conftest.in" >"conftest.tmp"
3795     mv "conftest.tmp" "conftest.in"
3796     cp "conftest.in" "conftest.nl"
3797     $as_echo 'EGREP' >> "conftest.nl"
3798     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3799     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3800     ac_count=`expr $ac_count + 1`
3801     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3802       # Best one so far, save it but keep looking for a better one
3803       ac_cv_path_EGREP="$ac_path_EGREP"
3804       ac_path_EGREP_max=$ac_count
3805     fi
3806     # 10*(2^10) chars as input seems more than enough
3807     test $ac_count -gt 10 && break
3808   done
3809   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3810 esac
3811
3812       $ac_path_EGREP_found && break 3
3813     done
3814   done
3815 done
3816 IFS=$as_save_IFS
3817   if test -z "$ac_cv_path_EGREP"; then
3818     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3819 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3820    { (exit 1); exit 1; }; }
3821   fi
3822 else
3823   ac_cv_path_EGREP=$EGREP
3824 fi
3825
3826    fi
3827 fi
3828 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3829 $as_echo "$ac_cv_path_EGREP" >&6; }
3830  EGREP="$ac_cv_path_EGREP"
3831
3832
3833 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3834 $as_echo_n "checking for ANSI C header files... " >&6; }
3835 if test "${ac_cv_header_stdc+set}" = set; then
3836   $as_echo_n "(cached) " >&6
3837 else
3838   cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h.  */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h.  */
3844 #include <stdlib.h>
3845 #include <stdarg.h>
3846 #include <string.h>
3847 #include <float.h>
3848
3849 int
3850 main ()
3851 {
3852
3853   ;
3854   return 0;
3855 }
3856 _ACEOF
3857 rm -f conftest.$ac_objext
3858 if { (ac_try="$ac_compile"
3859 case "(($ac_try" in
3860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861   *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3864 $as_echo "$ac_try_echo") >&5
3865   (eval "$ac_compile") 2>conftest.er1
3866   ac_status=$?
3867   grep -v '^ *+' conftest.er1 >conftest.err
3868   rm -f conftest.er1
3869   cat conftest.err >&5
3870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871   (exit $ac_status); } && {
3872          test -z "$ac_c_werror_flag" ||
3873          test ! -s conftest.err
3874        } && test -s conftest.$ac_objext; then
3875   ac_cv_header_stdc=yes
3876 else
3877   $as_echo "$as_me: failed program was:" >&5
3878 sed 's/^/| /' conftest.$ac_ext >&5
3879
3880         ac_cv_header_stdc=no
3881 fi
3882
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884
3885 if test $ac_cv_header_stdc = yes; then
3886   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3887   cat >conftest.$ac_ext <<_ACEOF
3888 /* confdefs.h.  */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h.  */
3893 #include <string.h>
3894
3895 _ACEOF
3896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3897   $EGREP "memchr" >/dev/null 2>&1; then
3898   :
3899 else
3900   ac_cv_header_stdc=no
3901 fi
3902 rm -f conftest*
3903
3904 fi
3905
3906 if test $ac_cv_header_stdc = yes; then
3907   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3908   cat >conftest.$ac_ext <<_ACEOF
3909 /* confdefs.h.  */
3910 _ACEOF
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h.  */
3914 #include <stdlib.h>
3915
3916 _ACEOF
3917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3918   $EGREP "free" >/dev/null 2>&1; then
3919   :
3920 else
3921   ac_cv_header_stdc=no
3922 fi
3923 rm -f conftest*
3924
3925 fi
3926
3927 if test $ac_cv_header_stdc = yes; then
3928   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3929   if test "$cross_compiling" = yes; then
3930   :
3931 else
3932   cat >conftest.$ac_ext <<_ACEOF
3933 /* confdefs.h.  */
3934 _ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h.  */
3938 #include <ctype.h>
3939 #include <stdlib.h>
3940 #if ((' ' & 0x0FF) == 0x020)
3941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3943 #else
3944 # define ISLOWER(c) \
3945                    (('a' <= (c) && (c) <= 'i') \
3946                      || ('j' <= (c) && (c) <= 'r') \
3947                      || ('s' <= (c) && (c) <= 'z'))
3948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3949 #endif
3950
3951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3952 int
3953 main ()
3954 {
3955   int i;
3956   for (i = 0; i < 256; i++)
3957     if (XOR (islower (i), ISLOWER (i))
3958         || toupper (i) != TOUPPER (i))
3959       return 2;
3960   return 0;
3961 }
3962 _ACEOF
3963 rm -f conftest$ac_exeext
3964 if { (ac_try="$ac_link"
3965 case "(($ac_try" in
3966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967   *) ac_try_echo=$ac_try;;
3968 esac
3969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3970 $as_echo "$ac_try_echo") >&5
3971   (eval "$ac_link") 2>&5
3972   ac_status=$?
3973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3975   { (case "(($ac_try" in
3976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977   *) ac_try_echo=$ac_try;;
3978 esac
3979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3980 $as_echo "$ac_try_echo") >&5
3981   (eval "$ac_try") 2>&5
3982   ac_status=$?
3983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984   (exit $ac_status); }; }; then
3985   :
3986 else
3987   $as_echo "$as_me: program exited with status $ac_status" >&5
3988 $as_echo "$as_me: failed program was:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3990
3991 ( exit $ac_status )
3992 ac_cv_header_stdc=no
3993 fi
3994 rm -rf conftest.dSYM
3995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3996 fi
3997
3998
3999 fi
4000 fi
4001 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4002 $as_echo "$ac_cv_header_stdc" >&6; }
4003 if test $ac_cv_header_stdc = yes; then
4004
4005 cat >>confdefs.h <<\_ACEOF
4006 #define STDC_HEADERS 1
4007 _ACEOF
4008
4009 fi
4010
4011 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4012 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4013 if test "${ac_cv_header_time+set}" = set; then
4014   $as_echo_n "(cached) " >&6
4015 else
4016   cat >conftest.$ac_ext <<_ACEOF
4017 /* confdefs.h.  */
4018 _ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h.  */
4022 #include <sys/types.h>
4023 #include <sys/time.h>
4024 #include <time.h>
4025
4026 int
4027 main ()
4028 {
4029 if ((struct tm *) 0)
4030 return 0;
4031   ;
4032   return 0;
4033 }
4034 _ACEOF
4035 rm -f conftest.$ac_objext
4036 if { (ac_try="$ac_compile"
4037 case "(($ac_try" in
4038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039   *) ac_try_echo=$ac_try;;
4040 esac
4041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4042 $as_echo "$ac_try_echo") >&5
4043   (eval "$ac_compile") 2>conftest.er1
4044   ac_status=$?
4045   grep -v '^ *+' conftest.er1 >conftest.err
4046   rm -f conftest.er1
4047   cat conftest.err >&5
4048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049   (exit $ac_status); } && {
4050          test -z "$ac_c_werror_flag" ||
4051          test ! -s conftest.err
4052        } && test -s conftest.$ac_objext; then
4053   ac_cv_header_time=yes
4054 else
4055   $as_echo "$as_me: failed program was:" >&5
4056 sed 's/^/| /' conftest.$ac_ext >&5
4057
4058         ac_cv_header_time=no
4059 fi
4060
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062 fi
4063 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4064 $as_echo "$ac_cv_header_time" >&6; }
4065 if test $ac_cv_header_time = yes; then
4066
4067 cat >>confdefs.h <<\_ACEOF
4068 #define TIME_WITH_SYS_TIME 1
4069 _ACEOF
4070
4071 fi
4072
4073 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4074 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4075 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4076   $as_echo_n "(cached) " >&6
4077 else
4078   cat >conftest.$ac_ext <<_ACEOF
4079 /* confdefs.h.  */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h.  */
4084 #include <sys/types.h>
4085 #include <sys/wait.h>
4086 #ifndef WEXITSTATUS
4087 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4088 #endif
4089 #ifndef WIFEXITED
4090 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4091 #endif
4092
4093 int
4094 main ()
4095 {
4096   int s;
4097   wait (&s);
4098   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4099   ;
4100   return 0;
4101 }
4102 _ACEOF
4103 rm -f conftest.$ac_objext
4104 if { (ac_try="$ac_compile"
4105 case "(($ac_try" in
4106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107   *) ac_try_echo=$ac_try;;
4108 esac
4109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4110 $as_echo "$ac_try_echo") >&5
4111   (eval "$ac_compile") 2>conftest.er1
4112   ac_status=$?
4113   grep -v '^ *+' conftest.er1 >conftest.err
4114   rm -f conftest.er1
4115   cat conftest.err >&5
4116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117   (exit $ac_status); } && {
4118          test -z "$ac_c_werror_flag" ||
4119          test ! -s conftest.err
4120        } && test -s conftest.$ac_objext; then
4121   ac_cv_header_sys_wait_h=yes
4122 else
4123   $as_echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4125
4126         ac_cv_header_sys_wait_h=no
4127 fi
4128
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4130 fi
4131 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4132 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4133 if test $ac_cv_header_sys_wait_h = yes; then
4134
4135 cat >>confdefs.h <<\_ACEOF
4136 #define HAVE_SYS_WAIT_H 1
4137 _ACEOF
4138
4139 fi
4140
4141
4142
4143
4144
4145
4146 ac_header_dirent=no
4147 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4148   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4149 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4150 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4152   $as_echo_n "(cached) " >&6
4153 else
4154   cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h.  */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h.  */
4160 #include <sys/types.h>
4161 #include <$ac_hdr>
4162
4163 int
4164 main ()
4165 {
4166 if ((DIR *) 0)
4167 return 0;
4168   ;
4169   return 0;
4170 }
4171 _ACEOF
4172 rm -f conftest.$ac_objext
4173 if { (ac_try="$ac_compile"
4174 case "(($ac_try" in
4175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176   *) ac_try_echo=$ac_try;;
4177 esac
4178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4179 $as_echo "$ac_try_echo") >&5
4180   (eval "$ac_compile") 2>conftest.er1
4181   ac_status=$?
4182   grep -v '^ *+' conftest.er1 >conftest.err
4183   rm -f conftest.er1
4184   cat conftest.err >&5
4185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186   (exit $ac_status); } && {
4187          test -z "$ac_c_werror_flag" ||
4188          test ! -s conftest.err
4189        } && test -s conftest.$ac_objext; then
4190   eval "$as_ac_Header=yes"
4191 else
4192   $as_echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4194
4195         eval "$as_ac_Header=no"
4196 fi
4197
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 fi
4200 ac_res=`eval 'as_val=${'$as_ac_Header'}
4201                  $as_echo "$as_val"'`
4202                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4203 $as_echo "$ac_res" >&6; }
4204 as_val=`eval 'as_val=${'$as_ac_Header'}
4205                  $as_echo "$as_val"'`
4206    if test "x$as_val" = x""yes; then
4207   cat >>confdefs.h <<_ACEOF
4208 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4209 _ACEOF
4210
4211 ac_header_dirent=$ac_hdr; break
4212 fi
4213
4214 done
4215 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4216 if test $ac_header_dirent = dirent.h; then
4217   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4218 $as_echo_n "checking for library containing opendir... " >&6; }
4219 if test "${ac_cv_search_opendir+set}" = set; then
4220   $as_echo_n "(cached) " >&6
4221 else
4222   ac_func_search_save_LIBS=$LIBS
4223 cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h.  */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h.  */
4229
4230 /* Override any GCC internal prototype to avoid an error.
4231    Use char because int might match the return type of a GCC
4232    builtin and then its argument prototype would still apply.  */
4233 #ifdef __cplusplus
4234 extern "C"
4235 #endif
4236 char opendir ();
4237 int
4238 main ()
4239 {
4240 return opendir ();
4241   ;
4242   return 0;
4243 }
4244 _ACEOF
4245 for ac_lib in '' dir; do
4246   if test -z "$ac_lib"; then
4247     ac_res="none required"
4248   else
4249     ac_res=-l$ac_lib
4250     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4251   fi
4252   rm -f conftest.$ac_objext conftest$ac_exeext
4253 if { (ac_try="$ac_link"
4254 case "(($ac_try" in
4255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4256   *) ac_try_echo=$ac_try;;
4257 esac
4258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4259 $as_echo "$ac_try_echo") >&5
4260   (eval "$ac_link") 2>conftest.er1
4261   ac_status=$?
4262   grep -v '^ *+' conftest.er1 >conftest.err
4263   rm -f conftest.er1
4264   cat conftest.err >&5
4265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266   (exit $ac_status); } && {
4267          test -z "$ac_c_werror_flag" ||
4268          test ! -s conftest.err
4269        } && test -s conftest$ac_exeext && {
4270          test "$cross_compiling" = yes ||
4271          $as_test_x conftest$ac_exeext
4272        }; then
4273   ac_cv_search_opendir=$ac_res
4274 else
4275   $as_echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4277
4278
4279 fi
4280
4281 rm -rf conftest.dSYM
4282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4283       conftest$ac_exeext
4284   if test "${ac_cv_search_opendir+set}" = set; then
4285   break
4286 fi
4287 done
4288 if test "${ac_cv_search_opendir+set}" = set; then
4289   :
4290 else
4291   ac_cv_search_opendir=no
4292 fi
4293 rm conftest.$ac_ext
4294 LIBS=$ac_func_search_save_LIBS
4295 fi
4296 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4297 $as_echo "$ac_cv_search_opendir" >&6; }
4298 ac_res=$ac_cv_search_opendir
4299 if test "$ac_res" != no; then
4300   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4301
4302 fi
4303
4304 else
4305   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4306 $as_echo_n "checking for library containing opendir... " >&6; }
4307 if test "${ac_cv_search_opendir+set}" = set; then
4308   $as_echo_n "(cached) " >&6
4309 else
4310   ac_func_search_save_LIBS=$LIBS
4311 cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h.  */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h.  */
4317
4318 /* Override any GCC internal prototype to avoid an error.
4319    Use char because int might match the return type of a GCC
4320    builtin and then its argument prototype would still apply.  */
4321 #ifdef __cplusplus
4322 extern "C"
4323 #endif
4324 char opendir ();
4325 int
4326 main ()
4327 {
4328 return opendir ();
4329   ;
4330   return 0;
4331 }
4332 _ACEOF
4333 for ac_lib in '' x; do
4334   if test -z "$ac_lib"; then
4335     ac_res="none required"
4336   else
4337     ac_res=-l$ac_lib
4338     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4339   fi
4340   rm -f conftest.$ac_objext conftest$ac_exeext
4341 if { (ac_try="$ac_link"
4342 case "(($ac_try" in
4343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344   *) ac_try_echo=$ac_try;;
4345 esac
4346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4347 $as_echo "$ac_try_echo") >&5
4348   (eval "$ac_link") 2>conftest.er1
4349   ac_status=$?
4350   grep -v '^ *+' conftest.er1 >conftest.err
4351   rm -f conftest.er1
4352   cat conftest.err >&5
4353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354   (exit $ac_status); } && {
4355          test -z "$ac_c_werror_flag" ||
4356          test ! -s conftest.err
4357        } && test -s conftest$ac_exeext && {
4358          test "$cross_compiling" = yes ||
4359          $as_test_x conftest$ac_exeext
4360        }; then
4361   ac_cv_search_opendir=$ac_res
4362 else
4363   $as_echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366
4367 fi
4368
4369 rm -rf conftest.dSYM
4370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4371       conftest$ac_exeext
4372   if test "${ac_cv_search_opendir+set}" = set; then
4373   break
4374 fi
4375 done
4376 if test "${ac_cv_search_opendir+set}" = set; then
4377   :
4378 else
4379   ac_cv_search_opendir=no
4380 fi
4381 rm conftest.$ac_ext
4382 LIBS=$ac_func_search_save_LIBS
4383 fi
4384 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4385 $as_echo "$ac_cv_search_opendir" >&6; }
4386 ac_res=$ac_cv_search_opendir
4387 if test "$ac_res" != no; then
4388   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4389
4390 fi
4391
4392 fi
4393
4394 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4395 $as_echo_n "checking return type of signal handlers... " >&6; }
4396 if test "${ac_cv_type_signal+set}" = set; then
4397   $as_echo_n "(cached) " >&6
4398 else
4399   cat >conftest.$ac_ext <<_ACEOF
4400 /* confdefs.h.  */
4401 _ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h.  */
4405 #include <sys/types.h>
4406 #include <signal.h>
4407
4408 int
4409 main ()
4410 {
4411 return *(signal (0, 0)) (0) == 1;
4412   ;
4413   return 0;
4414 }
4415 _ACEOF
4416 rm -f conftest.$ac_objext
4417 if { (ac_try="$ac_compile"
4418 case "(($ac_try" in
4419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420   *) ac_try_echo=$ac_try;;
4421 esac
4422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4423 $as_echo "$ac_try_echo") >&5
4424   (eval "$ac_compile") 2>conftest.er1
4425   ac_status=$?
4426   grep -v '^ *+' conftest.er1 >conftest.err
4427   rm -f conftest.er1
4428   cat conftest.err >&5
4429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); } && {
4431          test -z "$ac_c_werror_flag" ||
4432          test ! -s conftest.err
4433        } && test -s conftest.$ac_objext; then
4434   ac_cv_type_signal=int
4435 else
4436   $as_echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4438
4439         ac_cv_type_signal=void
4440 fi
4441
4442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443 fi
4444 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4445 $as_echo "$ac_cv_type_signal" >&6; }
4446
4447 cat >>confdefs.h <<_ACEOF
4448 #define RETSIGTYPE $ac_cv_type_signal
4449 _ACEOF
4450
4451
4452 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4463                   inttypes.h stdint.h unistd.h
4464 do
4465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4466 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4467 $as_echo_n "checking for $ac_header... " >&6; }
4468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4469   $as_echo_n "(cached) " >&6
4470 else
4471   cat >conftest.$ac_ext <<_ACEOF
4472 /* confdefs.h.  */
4473 _ACEOF
4474 cat confdefs.h >>conftest.$ac_ext
4475 cat >>conftest.$ac_ext <<_ACEOF
4476 /* end confdefs.h.  */
4477 $ac_includes_default
4478
4479 #include <$ac_header>
4480 _ACEOF
4481 rm -f conftest.$ac_objext
4482 if { (ac_try="$ac_compile"
4483 case "(($ac_try" in
4484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485   *) ac_try_echo=$ac_try;;
4486 esac
4487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4488 $as_echo "$ac_try_echo") >&5
4489   (eval "$ac_compile") 2>conftest.er1
4490   ac_status=$?
4491   grep -v '^ *+' conftest.er1 >conftest.err
4492   rm -f conftest.er1
4493   cat conftest.err >&5
4494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495   (exit $ac_status); } && {
4496          test -z "$ac_c_werror_flag" ||
4497          test ! -s conftest.err
4498        } && test -s conftest.$ac_objext; then
4499   eval "$as_ac_Header=yes"
4500 else
4501   $as_echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4503
4504         eval "$as_ac_Header=no"
4505 fi
4506
4507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4508 fi
4509 ac_res=`eval 'as_val=${'$as_ac_Header'}
4510                  $as_echo "$as_val"'`
4511                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4512 $as_echo "$ac_res" >&6; }
4513 as_val=`eval 'as_val=${'$as_ac_Header'}
4514                  $as_echo "$as_val"'`
4515    if test "x$as_val" = x""yes; then
4516   cat >>confdefs.h <<_ACEOF
4517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4518 _ACEOF
4519
4520 fi
4521
4522 done
4523
4524
4525
4526
4527
4528
4529
4530 for ac_header in stropts.h sys/time.h string.h unistd.h sys/systeminfo.h
4531 do
4532 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4534   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4535 $as_echo_n "checking for $ac_header... " >&6; }
4536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4537   $as_echo_n "(cached) " >&6
4538 fi
4539 ac_res=`eval 'as_val=${'$as_ac_Header'}
4540                  $as_echo "$as_val"'`
4541                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4542 $as_echo "$ac_res" >&6; }
4543 else
4544   # Is the header compilable?
4545 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4546 $as_echo_n "checking $ac_header usability... " >&6; }
4547 cat >conftest.$ac_ext <<_ACEOF
4548 /* confdefs.h.  */
4549 _ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h.  */
4553 $ac_includes_default
4554 #include <$ac_header>
4555 _ACEOF
4556 rm -f conftest.$ac_objext
4557 if { (ac_try="$ac_compile"
4558 case "(($ac_try" in
4559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560   *) ac_try_echo=$ac_try;;
4561 esac
4562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4563 $as_echo "$ac_try_echo") >&5
4564   (eval "$ac_compile") 2>conftest.er1
4565   ac_status=$?
4566   grep -v '^ *+' conftest.er1 >conftest.err
4567   rm -f conftest.er1
4568   cat conftest.err >&5
4569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570   (exit $ac_status); } && {
4571          test -z "$ac_c_werror_flag" ||
4572          test ! -s conftest.err
4573        } && test -s conftest.$ac_objext; then
4574   ac_header_compiler=yes
4575 else
4576   $as_echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4578
4579         ac_header_compiler=no
4580 fi
4581
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4583 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4584 $as_echo "$ac_header_compiler" >&6; }
4585
4586 # Is the header present?
4587 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4588 $as_echo_n "checking $ac_header presence... " >&6; }
4589 cat >conftest.$ac_ext <<_ACEOF
4590 /* confdefs.h.  */
4591 _ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h.  */
4595 #include <$ac_header>
4596 _ACEOF
4597 if { (ac_try="$ac_cpp conftest.$ac_ext"
4598 case "(($ac_try" in
4599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600   *) ac_try_echo=$ac_try;;
4601 esac
4602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4603 $as_echo "$ac_try_echo") >&5
4604   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4605   ac_status=$?
4606   grep -v '^ *+' conftest.er1 >conftest.err
4607   rm -f conftest.er1
4608   cat conftest.err >&5
4609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } >/dev/null && {
4611          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4612          test ! -s conftest.err
4613        }; then
4614   ac_header_preproc=yes
4615 else
4616   $as_echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4618
4619   ac_header_preproc=no
4620 fi
4621
4622 rm -f conftest.err conftest.$ac_ext
4623 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4624 $as_echo "$ac_header_preproc" >&6; }
4625
4626 # So?  What about this header?
4627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4628   yes:no: )
4629     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4630 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4631     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4632 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4633     ac_header_preproc=yes
4634     ;;
4635   no:yes:* )
4636     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4637 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4638     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4639 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4640     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4641 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4642     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4643 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4644     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4645 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4646     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4647 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4648
4649     ;;
4650 esac
4651 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4652 $as_echo_n "checking for $ac_header... " >&6; }
4653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4654   $as_echo_n "(cached) " >&6
4655 else
4656   eval "$as_ac_Header=\$ac_header_preproc"
4657 fi
4658 ac_res=`eval 'as_val=${'$as_ac_Header'}
4659                  $as_echo "$as_val"'`
4660                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4661 $as_echo "$ac_res" >&6; }
4662
4663 fi
4664 as_val=`eval 'as_val=${'$as_ac_Header'}
4665                  $as_echo "$as_val"'`
4666    if test "x$as_val" = x""yes; then
4667   cat >>confdefs.h <<_ACEOF
4668 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4669 _ACEOF
4670
4671 fi
4672
4673 done
4674
4675
4676
4677 for ac_header in fcntl.h sys/fcntl.h
4678 do
4679 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4681   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4682 $as_echo_n "checking for $ac_header... " >&6; }
4683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4684   $as_echo_n "(cached) " >&6
4685 fi
4686 ac_res=`eval 'as_val=${'$as_ac_Header'}
4687                  $as_echo "$as_val"'`
4688                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4689 $as_echo "$ac_res" >&6; }
4690 else
4691   # Is the header compilable?
4692 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4693 $as_echo_n "checking $ac_header usability... " >&6; }
4694 cat >conftest.$ac_ext <<_ACEOF
4695 /* confdefs.h.  */
4696 _ACEOF
4697 cat confdefs.h >>conftest.$ac_ext
4698 cat >>conftest.$ac_ext <<_ACEOF
4699 /* end confdefs.h.  */
4700 $ac_includes_default
4701 #include <$ac_header>
4702 _ACEOF
4703 rm -f conftest.$ac_objext
4704 if { (ac_try="$ac_compile"
4705 case "(($ac_try" in
4706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707   *) ac_try_echo=$ac_try;;
4708 esac
4709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4710 $as_echo "$ac_try_echo") >&5
4711   (eval "$ac_compile") 2>conftest.er1
4712   ac_status=$?
4713   grep -v '^ *+' conftest.er1 >conftest.err
4714   rm -f conftest.er1
4715   cat conftest.err >&5
4716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717   (exit $ac_status); } && {
4718          test -z "$ac_c_werror_flag" ||
4719          test ! -s conftest.err
4720        } && test -s conftest.$ac_objext; then
4721   ac_header_compiler=yes
4722 else
4723   $as_echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4725
4726         ac_header_compiler=no
4727 fi
4728
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4731 $as_echo "$ac_header_compiler" >&6; }
4732
4733 # Is the header present?
4734 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4735 $as_echo_n "checking $ac_header presence... " >&6; }
4736 cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h.  */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h.  */
4742 #include <$ac_header>
4743 _ACEOF
4744 if { (ac_try="$ac_cpp conftest.$ac_ext"
4745 case "(($ac_try" in
4746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747   *) ac_try_echo=$ac_try;;
4748 esac
4749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4750 $as_echo "$ac_try_echo") >&5
4751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4752   ac_status=$?
4753   grep -v '^ *+' conftest.er1 >conftest.err
4754   rm -f conftest.er1
4755   cat conftest.err >&5
4756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); } >/dev/null && {
4758          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4759          test ! -s conftest.err
4760        }; then
4761   ac_header_preproc=yes
4762 else
4763   $as_echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4765
4766   ac_header_preproc=no
4767 fi
4768
4769 rm -f conftest.err conftest.$ac_ext
4770 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4771 $as_echo "$ac_header_preproc" >&6; }
4772
4773 # So?  What about this header?
4774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4775   yes:no: )
4776     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4777 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4778     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4780     ac_header_preproc=yes
4781     ;;
4782   no:yes:* )
4783     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4784 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4785     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4786 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4787     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4788 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4789     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4790 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4791     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4793     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4794 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4795
4796     ;;
4797 esac
4798 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4799 $as_echo_n "checking for $ac_header... " >&6; }
4800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4801   $as_echo_n "(cached) " >&6
4802 else
4803   eval "$as_ac_Header=\$ac_header_preproc"
4804 fi
4805 ac_res=`eval 'as_val=${'$as_ac_Header'}
4806                  $as_echo "$as_val"'`
4807                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4808 $as_echo "$ac_res" >&6; }
4809
4810 fi
4811 as_val=`eval 'as_val=${'$as_ac_Header'}
4812                  $as_echo "$as_val"'`
4813    if test "x$as_val" = x""yes; then
4814   cat >>confdefs.h <<_ACEOF
4815 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4816 _ACEOF
4817  break
4818 fi
4819
4820 done
4821
4822
4823
4824 for ac_header in sys/socket.h lan/socket.h
4825 do
4826 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4828   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4829 $as_echo_n "checking for $ac_header... " >&6; }
4830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4831   $as_echo_n "(cached) " >&6
4832 fi
4833 ac_res=`eval 'as_val=${'$as_ac_Header'}
4834                  $as_echo "$as_val"'`
4835                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4836 $as_echo "$ac_res" >&6; }
4837 else
4838   # Is the header compilable?
4839 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4840 $as_echo_n "checking $ac_header usability... " >&6; }
4841 cat >conftest.$ac_ext <<_ACEOF
4842 /* confdefs.h.  */
4843 _ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h.  */
4847 $ac_includes_default
4848 #include <$ac_header>
4849 _ACEOF
4850 rm -f conftest.$ac_objext
4851 if { (ac_try="$ac_compile"
4852 case "(($ac_try" in
4853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854   *) ac_try_echo=$ac_try;;
4855 esac
4856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4857 $as_echo "$ac_try_echo") >&5
4858   (eval "$ac_compile") 2>conftest.er1
4859   ac_status=$?
4860   grep -v '^ *+' conftest.er1 >conftest.err
4861   rm -f conftest.er1
4862   cat conftest.err >&5
4863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864   (exit $ac_status); } && {
4865          test -z "$ac_c_werror_flag" ||
4866          test ! -s conftest.err
4867        } && test -s conftest.$ac_objext; then
4868   ac_header_compiler=yes
4869 else
4870   $as_echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4872
4873         ac_header_compiler=no
4874 fi
4875
4876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4878 $as_echo "$ac_header_compiler" >&6; }
4879
4880 # Is the header present?
4881 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4882 $as_echo_n "checking $ac_header presence... " >&6; }
4883 cat >conftest.$ac_ext <<_ACEOF
4884 /* confdefs.h.  */
4885 _ACEOF
4886 cat confdefs.h >>conftest.$ac_ext
4887 cat >>conftest.$ac_ext <<_ACEOF
4888 /* end confdefs.h.  */
4889 #include <$ac_header>
4890 _ACEOF
4891 if { (ac_try="$ac_cpp conftest.$ac_ext"
4892 case "(($ac_try" in
4893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894   *) ac_try_echo=$ac_try;;
4895 esac
4896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4897 $as_echo "$ac_try_echo") >&5
4898   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4899   ac_status=$?
4900   grep -v '^ *+' conftest.er1 >conftest.err
4901   rm -f conftest.er1
4902   cat conftest.err >&5
4903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904   (exit $ac_status); } >/dev/null && {
4905          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4906          test ! -s conftest.err
4907        }; then
4908   ac_header_preproc=yes
4909 else
4910   $as_echo "$as_me: failed program was:" >&5
4911 sed 's/^/| /' conftest.$ac_ext >&5
4912
4913   ac_header_preproc=no
4914 fi
4915
4916 rm -f conftest.err conftest.$ac_ext
4917 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4918 $as_echo "$ac_header_preproc" >&6; }
4919
4920 # So?  What about this header?
4921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4922   yes:no: )
4923     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4924 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4925     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4927     ac_header_preproc=yes
4928     ;;
4929   no:yes:* )
4930     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4931 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4932     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4933 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4934     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4935 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4936     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4937 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4938     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4939 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4940     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4941 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4942
4943     ;;
4944 esac
4945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4946 $as_echo_n "checking for $ac_header... " >&6; }
4947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4948   $as_echo_n "(cached) " >&6
4949 else
4950   eval "$as_ac_Header=\$ac_header_preproc"
4951 fi
4952 ac_res=`eval 'as_val=${'$as_ac_Header'}
4953                  $as_echo "$as_val"'`
4954                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4955 $as_echo "$ac_res" >&6; }
4956
4957 fi
4958 as_val=`eval 'as_val=${'$as_ac_Header'}
4959                  $as_echo "$as_val"'`
4960    if test "x$as_val" = x""yes; then
4961   cat >>confdefs.h <<_ACEOF
4962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4963 _ACEOF
4964  break
4965 fi
4966
4967 done
4968
4969 if test "${ac_cv_header_stddef_h+set}" = set; then
4970   { $as_echo "$as_me:$LINENO: checking for stddef.h" >&5
4971 $as_echo_n "checking for stddef.h... " >&6; }
4972 if test "${ac_cv_header_stddef_h+set}" = set; then
4973   $as_echo_n "(cached) " >&6
4974 fi
4975 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
4976 $as_echo "$ac_cv_header_stddef_h" >&6; }
4977 else
4978   # Is the header compilable?
4979 { $as_echo "$as_me:$LINENO: checking stddef.h usability" >&5
4980 $as_echo_n "checking stddef.h usability... " >&6; }
4981 cat >conftest.$ac_ext <<_ACEOF
4982 /* confdefs.h.  */
4983 _ACEOF
4984 cat confdefs.h >>conftest.$ac_ext
4985 cat >>conftest.$ac_ext <<_ACEOF
4986 /* end confdefs.h.  */
4987 $ac_includes_default
4988 #include <stddef.h>
4989 _ACEOF
4990 rm -f conftest.$ac_objext
4991 if { (ac_try="$ac_compile"
4992 case "(($ac_try" in
4993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994   *) ac_try_echo=$ac_try;;
4995 esac
4996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4997 $as_echo "$ac_try_echo") >&5
4998   (eval "$ac_compile") 2>conftest.er1
4999   ac_status=$?
5000   grep -v '^ *+' conftest.er1 >conftest.err
5001   rm -f conftest.er1
5002   cat conftest.err >&5
5003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); } && {
5005          test -z "$ac_c_werror_flag" ||
5006          test ! -s conftest.err
5007        } && test -s conftest.$ac_objext; then
5008   ac_header_compiler=yes
5009 else
5010   $as_echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.$ac_ext >&5
5012
5013         ac_header_compiler=no
5014 fi
5015
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5018 $as_echo "$ac_header_compiler" >&6; }
5019
5020 # Is the header present?
5021 { $as_echo "$as_me:$LINENO: checking stddef.h presence" >&5
5022 $as_echo_n "checking stddef.h presence... " >&6; }
5023 cat >conftest.$ac_ext <<_ACEOF
5024 /* confdefs.h.  */
5025 _ACEOF
5026 cat confdefs.h >>conftest.$ac_ext
5027 cat >>conftest.$ac_ext <<_ACEOF
5028 /* end confdefs.h.  */
5029 #include <stddef.h>
5030 _ACEOF
5031 if { (ac_try="$ac_cpp conftest.$ac_ext"
5032 case "(($ac_try" in
5033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5034   *) ac_try_echo=$ac_try;;
5035 esac
5036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5037 $as_echo "$ac_try_echo") >&5
5038   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5039   ac_status=$?
5040   grep -v '^ *+' conftest.er1 >conftest.err
5041   rm -f conftest.er1
5042   cat conftest.err >&5
5043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044   (exit $ac_status); } >/dev/null && {
5045          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5046          test ! -s conftest.err
5047        }; then
5048   ac_header_preproc=yes
5049 else
5050   $as_echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5052
5053   ac_header_preproc=no
5054 fi
5055
5056 rm -f conftest.err conftest.$ac_ext
5057 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5058 $as_echo "$ac_header_preproc" >&6; }
5059
5060 # So?  What about this header?
5061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5062   yes:no: )
5063     { $as_echo "$as_me:$LINENO: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&5
5064 $as_echo "$as_me: WARNING: stddef.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5065     { $as_echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the compiler's result" >&5
5066 $as_echo "$as_me: WARNING: stddef.h: proceeding with the compiler's result" >&2;}
5067     ac_header_preproc=yes
5068     ;;
5069   no:yes:* )
5070     { $as_echo "$as_me:$LINENO: WARNING: stddef.h: present but cannot be compiled" >&5
5071 $as_echo "$as_me: WARNING: stddef.h: present but cannot be compiled" >&2;}
5072     { $as_echo "$as_me:$LINENO: WARNING: stddef.h:     check for missing prerequisite headers?" >&5
5073 $as_echo "$as_me: WARNING: stddef.h:     check for missing prerequisite headers?" >&2;}
5074     { $as_echo "$as_me:$LINENO: WARNING: stddef.h: see the Autoconf documentation" >&5
5075 $as_echo "$as_me: WARNING: stddef.h: see the Autoconf documentation" >&2;}
5076     { $as_echo "$as_me:$LINENO: WARNING: stddef.h:     section \"Present But Cannot Be Compiled\"" >&5
5077 $as_echo "$as_me: WARNING: stddef.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5078     { $as_echo "$as_me:$LINENO: WARNING: stddef.h: proceeding with the preprocessor's result" >&5
5079 $as_echo "$as_me: WARNING: stddef.h: proceeding with the preprocessor's result" >&2;}
5080     { $as_echo "$as_me:$LINENO: WARNING: stddef.h: in the future, the compiler will take precedence" >&5
5081 $as_echo "$as_me: WARNING: stddef.h: in the future, the compiler will take precedence" >&2;}
5082
5083     ;;
5084 esac
5085 { $as_echo "$as_me:$LINENO: checking for stddef.h" >&5
5086 $as_echo_n "checking for stddef.h... " >&6; }
5087 if test "${ac_cv_header_stddef_h+set}" = set; then
5088   $as_echo_n "(cached) " >&6
5089 else
5090   ac_cv_header_stddef_h=$ac_header_preproc
5091 fi
5092 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stddef_h" >&5
5093 $as_echo "$ac_cv_header_stddef_h" >&6; }
5094
5095 fi
5096 if test "x$ac_cv_header_stddef_h" = x""yes; then
5097   :
5098 else
5099   cat >>confdefs.h <<\_ACEOF
5100 #define X_WCHAR 1
5101 _ACEOF
5102
5103 fi
5104
5105
5106
5107
5108
5109
5110
5111 for ac_func in _getpty grantpt setitimer usleep
5112 do
5113 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5114 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5115 $as_echo_n "checking for $ac_func... " >&6; }
5116 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5117   $as_echo_n "(cached) " >&6
5118 else
5119   cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h.  */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h.  */
5125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5127 #define $ac_func innocuous_$ac_func
5128
5129 /* System header to define __stub macros and hopefully few prototypes,
5130     which can conflict with char $ac_func (); below.
5131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5132     <limits.h> exists even on freestanding compilers.  */
5133
5134 #ifdef __STDC__
5135 # include <limits.h>
5136 #else
5137 # include <assert.h>
5138 #endif
5139
5140 #undef $ac_func
5141
5142 /* Override any GCC internal prototype to avoid an error.
5143    Use char because int might match the return type of a GCC
5144    builtin and then its argument prototype would still apply.  */
5145 #ifdef __cplusplus
5146 extern "C"
5147 #endif
5148 char $ac_func ();
5149 /* The GNU C library defines this for functions which it implements
5150     to always fail with ENOSYS.  Some functions are actually named
5151     something starting with __ and the normal name is an alias.  */
5152 #if defined __stub_$ac_func || defined __stub___$ac_func
5153 choke me
5154 #endif
5155
5156 int
5157 main ()
5158 {
5159 return $ac_func ();
5160   ;
5161   return 0;
5162 }
5163 _ACEOF
5164 rm -f conftest.$ac_objext conftest$ac_exeext
5165 if { (ac_try="$ac_link"
5166 case "(($ac_try" in
5167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5168   *) ac_try_echo=$ac_try;;
5169 esac
5170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5171 $as_echo "$ac_try_echo") >&5
5172   (eval "$ac_link") 2>conftest.er1
5173   ac_status=$?
5174   grep -v '^ *+' conftest.er1 >conftest.err
5175   rm -f conftest.er1
5176   cat conftest.err >&5
5177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178   (exit $ac_status); } && {
5179          test -z "$ac_c_werror_flag" ||
5180          test ! -s conftest.err
5181        } && test -s conftest$ac_exeext && {
5182          test "$cross_compiling" = yes ||
5183          $as_test_x conftest$ac_exeext
5184        }; then
5185   eval "$as_ac_var=yes"
5186 else
5187   $as_echo "$as_me: failed program was:" >&5
5188 sed 's/^/| /' conftest.$ac_ext >&5
5189
5190         eval "$as_ac_var=no"
5191 fi
5192
5193 rm -rf conftest.dSYM
5194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5195       conftest$ac_exeext conftest.$ac_ext
5196 fi
5197 ac_res=`eval 'as_val=${'$as_ac_var'}
5198                  $as_echo "$as_val"'`
5199                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5200 $as_echo "$ac_res" >&6; }
5201 as_val=`eval 'as_val=${'$as_ac_var'}
5202                  $as_echo "$as_val"'`
5203    if test "x$as_val" = x""yes; then
5204   cat >>confdefs.h <<_ACEOF
5205 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5206 _ACEOF
5207
5208 fi
5209 done
5210
5211
5212
5213 for ac_func in gettimeofday ftime
5214 do
5215 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5216 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5217 $as_echo_n "checking for $ac_func... " >&6; }
5218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5219   $as_echo_n "(cached) " >&6
5220 else
5221   cat >conftest.$ac_ext <<_ACEOF
5222 /* confdefs.h.  */
5223 _ACEOF
5224 cat confdefs.h >>conftest.$ac_ext
5225 cat >>conftest.$ac_ext <<_ACEOF
5226 /* end confdefs.h.  */
5227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5229 #define $ac_func innocuous_$ac_func
5230
5231 /* System header to define __stub macros and hopefully few prototypes,
5232     which can conflict with char $ac_func (); below.
5233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5234     <limits.h> exists even on freestanding compilers.  */
5235
5236 #ifdef __STDC__
5237 # include <limits.h>
5238 #else
5239 # include <assert.h>
5240 #endif
5241
5242 #undef $ac_func
5243
5244 /* Override any GCC internal prototype to avoid an error.
5245    Use char because int might match the return type of a GCC
5246    builtin and then its argument prototype would still apply.  */
5247 #ifdef __cplusplus
5248 extern "C"
5249 #endif
5250 char $ac_func ();
5251 /* The GNU C library defines this for functions which it implements
5252     to always fail with ENOSYS.  Some functions are actually named
5253     something starting with __ and the normal name is an alias.  */
5254 #if defined __stub_$ac_func || defined __stub___$ac_func
5255 choke me
5256 #endif
5257
5258 int
5259 main ()
5260 {
5261 return $ac_func ();
5262   ;
5263   return 0;
5264 }
5265 _ACEOF
5266 rm -f conftest.$ac_objext conftest$ac_exeext
5267 if { (ac_try="$ac_link"
5268 case "(($ac_try" in
5269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5270   *) ac_try_echo=$ac_try;;
5271 esac
5272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5273 $as_echo "$ac_try_echo") >&5
5274   (eval "$ac_link") 2>conftest.er1
5275   ac_status=$?
5276   grep -v '^ *+' conftest.er1 >conftest.err
5277   rm -f conftest.er1
5278   cat conftest.err >&5
5279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280   (exit $ac_status); } && {
5281          test -z "$ac_c_werror_flag" ||
5282          test ! -s conftest.err
5283        } && test -s conftest$ac_exeext && {
5284          test "$cross_compiling" = yes ||
5285          $as_test_x conftest$ac_exeext
5286        }; then
5287   eval "$as_ac_var=yes"
5288 else
5289   $as_echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5291
5292         eval "$as_ac_var=no"
5293 fi
5294
5295 rm -rf conftest.dSYM
5296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5297       conftest$ac_exeext conftest.$ac_ext
5298 fi
5299 ac_res=`eval 'as_val=${'$as_ac_var'}
5300                  $as_echo "$as_val"'`
5301                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5302 $as_echo "$ac_res" >&6; }
5303 as_val=`eval 'as_val=${'$as_ac_var'}
5304                  $as_echo "$as_val"'`
5305    if test "x$as_val" = x""yes; then
5306   cat >>confdefs.h <<_ACEOF
5307 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5308 _ACEOF
5309  break
5310 fi
5311 done
5312
5313
5314
5315 for ac_func in random rand48
5316 do
5317 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5318 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5319 $as_echo_n "checking for $ac_func... " >&6; }
5320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5321   $as_echo_n "(cached) " >&6
5322 else
5323   cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h.  */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h.  */
5329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5331 #define $ac_func innocuous_$ac_func
5332
5333 /* System header to define __stub macros and hopefully few prototypes,
5334     which can conflict with char $ac_func (); below.
5335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5336     <limits.h> exists even on freestanding compilers.  */
5337
5338 #ifdef __STDC__
5339 # include <limits.h>
5340 #else
5341 # include <assert.h>
5342 #endif
5343
5344 #undef $ac_func
5345
5346 /* Override any GCC internal prototype to avoid an error.
5347    Use char because int might match the return type of a GCC
5348    builtin and then its argument prototype would still apply.  */
5349 #ifdef __cplusplus
5350 extern "C"
5351 #endif
5352 char $ac_func ();
5353 /* The GNU C library defines this for functions which it implements
5354     to always fail with ENOSYS.  Some functions are actually named
5355     something starting with __ and the normal name is an alias.  */
5356 #if defined __stub_$ac_func || defined __stub___$ac_func
5357 choke me
5358 #endif
5359
5360 int
5361 main ()
5362 {
5363 return $ac_func ();
5364   ;
5365   return 0;
5366 }
5367 _ACEOF
5368 rm -f conftest.$ac_objext conftest$ac_exeext
5369 if { (ac_try="$ac_link"
5370 case "(($ac_try" in
5371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372   *) ac_try_echo=$ac_try;;
5373 esac
5374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5375 $as_echo "$ac_try_echo") >&5
5376   (eval "$ac_link") 2>conftest.er1
5377   ac_status=$?
5378   grep -v '^ *+' conftest.er1 >conftest.err
5379   rm -f conftest.er1
5380   cat conftest.err >&5
5381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382   (exit $ac_status); } && {
5383          test -z "$ac_c_werror_flag" ||
5384          test ! -s conftest.err
5385        } && test -s conftest$ac_exeext && {
5386          test "$cross_compiling" = yes ||
5387          $as_test_x conftest$ac_exeext
5388        }; then
5389   eval "$as_ac_var=yes"
5390 else
5391   $as_echo "$as_me: failed program was:" >&5
5392 sed 's/^/| /' conftest.$ac_ext >&5
5393
5394         eval "$as_ac_var=no"
5395 fi
5396
5397 rm -rf conftest.dSYM
5398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5399       conftest$ac_exeext conftest.$ac_ext
5400 fi
5401 ac_res=`eval 'as_val=${'$as_ac_var'}
5402                  $as_echo "$as_val"'`
5403                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5404 $as_echo "$ac_res" >&6; }
5405 as_val=`eval 'as_val=${'$as_ac_var'}
5406                  $as_echo "$as_val"'`
5407    if test "x$as_val" = x""yes; then
5408   cat >>confdefs.h <<_ACEOF
5409 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5410 _ACEOF
5411  break
5412 fi
5413 done
5414
5415
5416
5417 for ac_func in gethostname sysinfo
5418 do
5419 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5420 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5421 $as_echo_n "checking for $ac_func... " >&6; }
5422 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5423   $as_echo_n "(cached) " >&6
5424 else
5425   cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h.  */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h.  */
5431 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5432    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5433 #define $ac_func innocuous_$ac_func
5434
5435 /* System header to define __stub macros and hopefully few prototypes,
5436     which can conflict with char $ac_func (); below.
5437     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5438     <limits.h> exists even on freestanding compilers.  */
5439
5440 #ifdef __STDC__
5441 # include <limits.h>
5442 #else
5443 # include <assert.h>
5444 #endif
5445
5446 #undef $ac_func
5447
5448 /* Override any GCC internal prototype to avoid an error.
5449    Use char because int might match the return type of a GCC
5450    builtin and then its argument prototype would still apply.  */
5451 #ifdef __cplusplus
5452 extern "C"
5453 #endif
5454 char $ac_func ();
5455 /* The GNU C library defines this for functions which it implements
5456     to always fail with ENOSYS.  Some functions are actually named
5457     something starting with __ and the normal name is an alias.  */
5458 #if defined __stub_$ac_func || defined __stub___$ac_func
5459 choke me
5460 #endif
5461
5462 int
5463 main ()
5464 {
5465 return $ac_func ();
5466   ;
5467   return 0;
5468 }
5469 _ACEOF
5470 rm -f conftest.$ac_objext conftest$ac_exeext
5471 if { (ac_try="$ac_link"
5472 case "(($ac_try" in
5473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474   *) ac_try_echo=$ac_try;;
5475 esac
5476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5477 $as_echo "$ac_try_echo") >&5
5478   (eval "$ac_link") 2>conftest.er1
5479   ac_status=$?
5480   grep -v '^ *+' conftest.er1 >conftest.err
5481   rm -f conftest.er1
5482   cat conftest.err >&5
5483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484   (exit $ac_status); } && {
5485          test -z "$ac_c_werror_flag" ||
5486          test ! -s conftest.err
5487        } && test -s conftest$ac_exeext && {
5488          test "$cross_compiling" = yes ||
5489          $as_test_x conftest$ac_exeext
5490        }; then
5491   eval "$as_ac_var=yes"
5492 else
5493   $as_echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5495
5496         eval "$as_ac_var=no"
5497 fi
5498
5499 rm -rf conftest.dSYM
5500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5501       conftest$ac_exeext conftest.$ac_ext
5502 fi
5503 ac_res=`eval 'as_val=${'$as_ac_var'}
5504                  $as_echo "$as_val"'`
5505                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5506 $as_echo "$ac_res" >&6; }
5507 as_val=`eval 'as_val=${'$as_ac_var'}
5508                  $as_echo "$as_val"'`
5509    if test "x$as_val" = x""yes; then
5510   cat >>confdefs.h <<_ACEOF
5511 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5512 _ACEOF
5513  break
5514 fi
5515 done
5516
5517 { $as_echo "$as_me:$LINENO: checking for setlocale" >&5
5518 $as_echo_n "checking for setlocale... " >&6; }
5519 if test "${ac_cv_func_setlocale+set}" = set; then
5520   $as_echo_n "(cached) " >&6
5521 else
5522   cat >conftest.$ac_ext <<_ACEOF
5523 /* confdefs.h.  */
5524 _ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h.  */
5528 /* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
5529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5530 #define setlocale innocuous_setlocale
5531
5532 /* System header to define __stub macros and hopefully few prototypes,
5533     which can conflict with char setlocale (); below.
5534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5535     <limits.h> exists even on freestanding compilers.  */
5536
5537 #ifdef __STDC__
5538 # include <limits.h>
5539 #else
5540 # include <assert.h>
5541 #endif
5542
5543 #undef setlocale
5544
5545 /* Override any GCC internal prototype to avoid an error.
5546    Use char because int might match the return type of a GCC
5547    builtin and then its argument prototype would still apply.  */
5548 #ifdef __cplusplus
5549 extern "C"
5550 #endif
5551 char setlocale ();
5552 /* The GNU C library defines this for functions which it implements
5553     to always fail with ENOSYS.  Some functions are actually named
5554     something starting with __ and the normal name is an alias.  */
5555 #if defined __stub_setlocale || defined __stub___setlocale
5556 choke me
5557 #endif
5558
5559 int
5560 main ()
5561 {
5562 return setlocale ();
5563   ;
5564   return 0;
5565 }
5566 _ACEOF
5567 rm -f conftest.$ac_objext conftest$ac_exeext
5568 if { (ac_try="$ac_link"
5569 case "(($ac_try" in
5570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571   *) ac_try_echo=$ac_try;;
5572 esac
5573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5574 $as_echo "$ac_try_echo") >&5
5575   (eval "$ac_link") 2>conftest.er1
5576   ac_status=$?
5577   grep -v '^ *+' conftest.er1 >conftest.err
5578   rm -f conftest.er1
5579   cat conftest.err >&5
5580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581   (exit $ac_status); } && {
5582          test -z "$ac_c_werror_flag" ||
5583          test ! -s conftest.err
5584        } && test -s conftest$ac_exeext && {
5585          test "$cross_compiling" = yes ||
5586          $as_test_x conftest$ac_exeext
5587        }; then
5588   ac_cv_func_setlocale=yes
5589 else
5590   $as_echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5592
5593         ac_cv_func_setlocale=no
5594 fi
5595
5596 rm -rf conftest.dSYM
5597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5598       conftest$ac_exeext conftest.$ac_ext
5599 fi
5600 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
5601 $as_echo "$ac_cv_func_setlocale" >&6; }
5602 if test "x$ac_cv_func_setlocale" = x""yes; then
5603   :
5604 else
5605
5606 { $as_echo "$as_me:$LINENO: checking for setlocale in -li" >&5
5607 $as_echo_n "checking for setlocale in -li... " >&6; }
5608 if test "${ac_cv_lib_i_setlocale+set}" = set; then
5609   $as_echo_n "(cached) " >&6
5610 else
5611   ac_check_lib_save_LIBS=$LIBS
5612 LIBS="-li  $LIBS"
5613 cat >conftest.$ac_ext <<_ACEOF
5614 /* confdefs.h.  */
5615 _ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h.  */
5619
5620 /* Override any GCC internal prototype to avoid an error.
5621    Use char because int might match the return type of a GCC
5622    builtin and then its argument prototype would still apply.  */
5623 #ifdef __cplusplus
5624 extern "C"
5625 #endif
5626 char setlocale ();
5627 int
5628 main ()
5629 {
5630 return setlocale ();
5631   ;
5632   return 0;
5633 }
5634 _ACEOF
5635 rm -f conftest.$ac_objext conftest$ac_exeext
5636 if { (ac_try="$ac_link"
5637 case "(($ac_try" in
5638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639   *) ac_try_echo=$ac_try;;
5640 esac
5641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5642 $as_echo "$ac_try_echo") >&5
5643   (eval "$ac_link") 2>conftest.er1
5644   ac_status=$?
5645   grep -v '^ *+' conftest.er1 >conftest.err
5646   rm -f conftest.er1
5647   cat conftest.err >&5
5648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649   (exit $ac_status); } && {
5650          test -z "$ac_c_werror_flag" ||
5651          test ! -s conftest.err
5652        } && test -s conftest$ac_exeext && {
5653          test "$cross_compiling" = yes ||
5654          $as_test_x conftest$ac_exeext
5655        }; then
5656   ac_cv_lib_i_setlocale=yes
5657 else
5658   $as_echo "$as_me: failed program was:" >&5
5659 sed 's/^/| /' conftest.$ac_ext >&5
5660
5661         ac_cv_lib_i_setlocale=no
5662 fi
5663
5664 rm -rf conftest.dSYM
5665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5666       conftest$ac_exeext conftest.$ac_ext
5667 LIBS=$ac_check_lib_save_LIBS
5668 fi
5669 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_i_setlocale" >&5
5670 $as_echo "$ac_cv_lib_i_setlocale" >&6; }
5671 if test "x$ac_cv_lib_i_setlocale" = x""yes; then
5672   cat >>confdefs.h <<_ACEOF
5673 #define HAVE_LIBI 1
5674 _ACEOF
5675
5676   LIBS="-li $LIBS"
5677
5678 else
5679   cat >>confdefs.h <<\_ACEOF
5680 #define X_LOCALE 1
5681 _ACEOF
5682
5683 fi
5684
5685 fi
5686
5687
5688
5689 { $as_echo "$as_me:$LINENO: checking for getpseudotty in -lseq" >&5
5690 $as_echo_n "checking for getpseudotty in -lseq... " >&6; }
5691 if test "${ac_cv_lib_seq_getpseudotty+set}" = set; then
5692   $as_echo_n "(cached) " >&6
5693 else
5694   ac_check_lib_save_LIBS=$LIBS
5695 LIBS="-lseq  $LIBS"
5696 cat >conftest.$ac_ext <<_ACEOF
5697 /* confdefs.h.  */
5698 _ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h.  */
5702
5703 /* Override any GCC internal prototype to avoid an error.
5704    Use char because int might match the return type of a GCC
5705    builtin and then its argument prototype would still apply.  */
5706 #ifdef __cplusplus
5707 extern "C"
5708 #endif
5709 char getpseudotty ();
5710 int
5711 main ()
5712 {
5713 return getpseudotty ();
5714   ;
5715   return 0;
5716 }
5717 _ACEOF
5718 rm -f conftest.$ac_objext conftest$ac_exeext
5719 if { (ac_try="$ac_link"
5720 case "(($ac_try" in
5721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5722   *) ac_try_echo=$ac_try;;
5723 esac
5724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5725 $as_echo "$ac_try_echo") >&5
5726   (eval "$ac_link") 2>conftest.er1
5727   ac_status=$?
5728   grep -v '^ *+' conftest.er1 >conftest.err
5729   rm -f conftest.er1
5730   cat conftest.err >&5
5731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); } && {
5733          test -z "$ac_c_werror_flag" ||
5734          test ! -s conftest.err
5735        } && test -s conftest$ac_exeext && {
5736          test "$cross_compiling" = yes ||
5737          $as_test_x conftest$ac_exeext
5738        }; then
5739   ac_cv_lib_seq_getpseudotty=yes
5740 else
5741   $as_echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5743
5744         ac_cv_lib_seq_getpseudotty=no
5745 fi
5746
5747 rm -rf conftest.dSYM
5748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5749       conftest$ac_exeext conftest.$ac_ext
5750 LIBS=$ac_check_lib_save_LIBS
5751 fi
5752 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getpseudotty" >&5
5753 $as_echo "$ac_cv_lib_seq_getpseudotty" >&6; }
5754 if test "x$ac_cv_lib_seq_getpseudotty" = x""yes; then
5755   cat >>confdefs.h <<_ACEOF
5756 #define HAVE_LIBSEQ 1
5757 _ACEOF
5758
5759   LIBS="-lseq $LIBS"
5760
5761 fi
5762
5763
5764 { $as_echo "$as_me:$LINENO: checking for X" >&5
5765 $as_echo_n "checking for X... " >&6; }
5766
5767
5768 # Check whether --with-x was given.
5769 if test "${with_x+set}" = set; then
5770   withval=$with_x;
5771 fi
5772
5773 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5774 if test "x$with_x" = xno; then
5775   # The user explicitly disabled X.
5776   have_x=disabled
5777 else
5778   case $x_includes,$x_libraries in #(
5779     *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
5780 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
5781    { (exit 1); exit 1; }; };; #(
5782     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
5783   $as_echo_n "(cached) " >&6
5784 else
5785   # One or both of the vars are not set, and there is no cached value.
5786 ac_x_includes=no ac_x_libraries=no
5787 rm -f -r conftest.dir
5788 if mkdir conftest.dir; then
5789   cd conftest.dir
5790   cat >Imakefile <<'_ACEOF'
5791 incroot:
5792         @echo incroot='${INCROOT}'
5793 usrlibdir:
5794         @echo usrlibdir='${USRLIBDIR}'
5795 libdir:
5796         @echo libdir='${LIBDIR}'
5797 _ACEOF
5798   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5799     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5800     for ac_var in incroot usrlibdir libdir; do
5801       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5802     done
5803     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5804     for ac_extension in a so sl dylib la dll; do
5805       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5806          test -f "$ac_im_libdir/libX11.$ac_extension"; then
5807         ac_im_usrlibdir=$ac_im_libdir; break
5808       fi
5809     done
5810     # Screen out bogus values from the imake configuration.  They are
5811     # bogus both because they are the default anyway, and because
5812     # using them would break gcc on systems where it needs fixed includes.
5813     case $ac_im_incroot in
5814         /usr/include) ac_x_includes= ;;
5815         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5816     esac
5817     case $ac_im_usrlibdir in
5818         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5819         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5820     esac
5821   fi
5822   cd ..
5823   rm -f -r conftest.dir
5824 fi
5825
5826 # Standard set of common directories for X headers.
5827 # Check X11 before X11Rn because it is often a symlink to the current release.
5828 ac_x_header_dirs='
5829 /usr/X11/include
5830 /usr/X11R6/include
5831 /usr/X11R5/include
5832 /usr/X11R4/include
5833
5834 /usr/include/X11
5835 /usr/include/X11R6
5836 /usr/include/X11R5
5837 /usr/include/X11R4
5838
5839 /usr/local/X11/include
5840 /usr/local/X11R6/include
5841 /usr/local/X11R5/include
5842 /usr/local/X11R4/include
5843
5844 /usr/local/include/X11
5845 /usr/local/include/X11R6
5846 /usr/local/include/X11R5
5847 /usr/local/include/X11R4
5848
5849 /usr/X386/include
5850 /usr/x386/include
5851 /usr/XFree86/include/X11
5852
5853 /usr/include
5854 /usr/local/include
5855 /usr/unsupported/include
5856 /usr/athena/include
5857 /usr/local/x11r5/include
5858 /usr/lpp/Xamples/include
5859
5860 /usr/openwin/include
5861 /usr/openwin/share/include'
5862
5863 if test "$ac_x_includes" = no; then
5864   # Guess where to find include files, by looking for Xlib.h.
5865   # First, try using that file with no special directory specified.
5866   cat >conftest.$ac_ext <<_ACEOF
5867 /* confdefs.h.  */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h.  */
5872 #include <X11/Xlib.h>
5873 _ACEOF
5874 if { (ac_try="$ac_cpp conftest.$ac_ext"
5875 case "(($ac_try" in
5876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5877   *) ac_try_echo=$ac_try;;
5878 esac
5879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5880 $as_echo "$ac_try_echo") >&5
5881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5882   ac_status=$?
5883   grep -v '^ *+' conftest.er1 >conftest.err
5884   rm -f conftest.er1
5885   cat conftest.err >&5
5886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887   (exit $ac_status); } >/dev/null && {
5888          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5889          test ! -s conftest.err
5890        }; then
5891   # We can compile using X headers with no special include directory.
5892 ac_x_includes=
5893 else
5894   $as_echo "$as_me: failed program was:" >&5
5895 sed 's/^/| /' conftest.$ac_ext >&5
5896
5897   for ac_dir in $ac_x_header_dirs; do
5898   if test -r "$ac_dir/X11/Xlib.h"; then
5899     ac_x_includes=$ac_dir
5900     break
5901   fi
5902 done
5903 fi
5904
5905 rm -f conftest.err conftest.$ac_ext
5906 fi # $ac_x_includes = no
5907
5908 if test "$ac_x_libraries" = no; then
5909   # Check for the libraries.
5910   # See if we find them without any special options.
5911   # Don't add to $LIBS permanently.
5912   ac_save_LIBS=$LIBS
5913   LIBS="-lX11 $LIBS"
5914   cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h.  */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h.  */
5920 #include <X11/Xlib.h>
5921 int
5922 main ()
5923 {
5924 XrmInitialize ()
5925   ;
5926   return 0;
5927 }
5928 _ACEOF
5929 rm -f conftest.$ac_objext conftest$ac_exeext
5930 if { (ac_try="$ac_link"
5931 case "(($ac_try" in
5932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933   *) ac_try_echo=$ac_try;;
5934 esac
5935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5936 $as_echo "$ac_try_echo") >&5
5937   (eval "$ac_link") 2>conftest.er1
5938   ac_status=$?
5939   grep -v '^ *+' conftest.er1 >conftest.err
5940   rm -f conftest.er1
5941   cat conftest.err >&5
5942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943   (exit $ac_status); } && {
5944          test -z "$ac_c_werror_flag" ||
5945          test ! -s conftest.err
5946        } && test -s conftest$ac_exeext && {
5947          test "$cross_compiling" = yes ||
5948          $as_test_x conftest$ac_exeext
5949        }; then
5950   LIBS=$ac_save_LIBS
5951 # We can link X programs with no special library path.
5952 ac_x_libraries=
5953 else
5954   $as_echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5956
5957         LIBS=$ac_save_LIBS
5958 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5959 do
5960   # Don't even attempt the hair of trying to link an X program!
5961   for ac_extension in a so sl dylib la dll; do
5962     if test -r "$ac_dir/libX11.$ac_extension"; then
5963       ac_x_libraries=$ac_dir
5964       break 2
5965     fi
5966   done
5967 done
5968 fi
5969
5970 rm -rf conftest.dSYM
5971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5972       conftest$ac_exeext conftest.$ac_ext
5973 fi # $ac_x_libraries = no
5974
5975 case $ac_x_includes,$ac_x_libraries in #(
5976   no,* | *,no | *\'*)
5977     # Didn't find X, or a directory has "'" in its name.
5978     ac_cv_have_x="have_x=no";; #(
5979   *)
5980     # Record where we found X for the cache.
5981     ac_cv_have_x="have_x=yes\
5982         ac_x_includes='$ac_x_includes'\
5983         ac_x_libraries='$ac_x_libraries'"
5984 esac
5985 fi
5986 ;; #(
5987     *) have_x=yes;;
5988   esac
5989   eval "$ac_cv_have_x"
5990 fi # $with_x != no
5991
5992 if test "$have_x" != yes; then
5993   { $as_echo "$as_me:$LINENO: result: $have_x" >&5
5994 $as_echo "$have_x" >&6; }
5995   no_x=yes
5996 else
5997   # If each of the values was on the command line, it overrides each guess.
5998   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5999   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6000   # Update the cache value to reflect the command line values.
6001   ac_cv_have_x="have_x=yes\
6002         ac_x_includes='$x_includes'\
6003         ac_x_libraries='$x_libraries'"
6004   { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6005 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
6006 fi
6007
6008 if test "$no_x" = yes; then
6009   # Not all programs may use this symbol, but it does not hurt to define it.
6010
6011 cat >>confdefs.h <<\_ACEOF
6012 #define X_DISPLAY_MISSING 1
6013 _ACEOF
6014
6015   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6016 else
6017   if test -n "$x_includes"; then
6018     X_CFLAGS="$X_CFLAGS -I$x_includes"
6019   fi
6020
6021   # It would also be nice to do this for all -L options, not just this one.
6022   if test -n "$x_libraries"; then
6023     X_LIBS="$X_LIBS -L$x_libraries"
6024     # For Solaris; some versions of Sun CC require a space after -R and
6025     # others require no space.  Words are not sufficient . . . .
6026     { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6027 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
6028     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6029     ac_xsave_c_werror_flag=$ac_c_werror_flag
6030     ac_c_werror_flag=yes
6031     cat >conftest.$ac_ext <<_ACEOF
6032 /* confdefs.h.  */
6033 _ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h.  */
6037
6038 int
6039 main ()
6040 {
6041
6042   ;
6043   return 0;
6044 }
6045 _ACEOF
6046 rm -f conftest.$ac_objext conftest$ac_exeext
6047 if { (ac_try="$ac_link"
6048 case "(($ac_try" in
6049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050   *) ac_try_echo=$ac_try;;
6051 esac
6052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6053 $as_echo "$ac_try_echo") >&5
6054   (eval "$ac_link") 2>conftest.er1
6055   ac_status=$?
6056   grep -v '^ *+' conftest.er1 >conftest.err
6057   rm -f conftest.er1
6058   cat conftest.err >&5
6059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060   (exit $ac_status); } && {
6061          test -z "$ac_c_werror_flag" ||
6062          test ! -s conftest.err
6063        } && test -s conftest$ac_exeext && {
6064          test "$cross_compiling" = yes ||
6065          $as_test_x conftest$ac_exeext
6066        }; then
6067   { $as_echo "$as_me:$LINENO: result: no" >&5
6068 $as_echo "no" >&6; }
6069        X_LIBS="$X_LIBS -R$x_libraries"
6070 else
6071   $as_echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6073
6074         LIBS="$ac_xsave_LIBS -R $x_libraries"
6075        cat >conftest.$ac_ext <<_ACEOF
6076 /* confdefs.h.  */
6077 _ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h.  */
6081
6082 int
6083 main ()
6084 {
6085
6086   ;
6087   return 0;
6088 }
6089 _ACEOF
6090 rm -f conftest.$ac_objext conftest$ac_exeext
6091 if { (ac_try="$ac_link"
6092 case "(($ac_try" in
6093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094   *) ac_try_echo=$ac_try;;
6095 esac
6096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6097 $as_echo "$ac_try_echo") >&5
6098   (eval "$ac_link") 2>conftest.er1
6099   ac_status=$?
6100   grep -v '^ *+' conftest.er1 >conftest.err
6101   rm -f conftest.er1
6102   cat conftest.err >&5
6103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104   (exit $ac_status); } && {
6105          test -z "$ac_c_werror_flag" ||
6106          test ! -s conftest.err
6107        } && test -s conftest$ac_exeext && {
6108          test "$cross_compiling" = yes ||
6109          $as_test_x conftest$ac_exeext
6110        }; then
6111   { $as_echo "$as_me:$LINENO: result: yes" >&5
6112 $as_echo "yes" >&6; }
6113           X_LIBS="$X_LIBS -R $x_libraries"
6114 else
6115   $as_echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6117
6118         { $as_echo "$as_me:$LINENO: result: neither works" >&5
6119 $as_echo "neither works" >&6; }
6120 fi
6121
6122 rm -rf conftest.dSYM
6123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6124       conftest$ac_exeext conftest.$ac_ext
6125 fi
6126
6127 rm -rf conftest.dSYM
6128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6129       conftest$ac_exeext conftest.$ac_ext
6130     ac_c_werror_flag=$ac_xsave_c_werror_flag
6131     LIBS=$ac_xsave_LIBS
6132   fi
6133
6134   # Check for system-dependent libraries X programs must link with.
6135   # Do this before checking for the system-independent R6 libraries
6136   # (-lICE), since we may need -lsocket or whatever for X linking.
6137
6138   if test "$ISC" = yes; then
6139     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6140   else
6141     # Martyn Johnson says this is needed for Ultrix, if the X
6142     # libraries were built with DECnet support.  And Karl Berry says
6143     # the Alpha needs dnet_stub (dnet does not exist).
6144     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6145     cat >conftest.$ac_ext <<_ACEOF
6146 /* confdefs.h.  */
6147 _ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h.  */
6151
6152 /* Override any GCC internal prototype to avoid an error.
6153    Use char because int might match the return type of a GCC
6154    builtin and then its argument prototype would still apply.  */
6155 #ifdef __cplusplus
6156 extern "C"
6157 #endif
6158 char XOpenDisplay ();
6159 int
6160 main ()
6161 {
6162 return XOpenDisplay ();
6163   ;
6164   return 0;
6165 }
6166 _ACEOF
6167 rm -f conftest.$ac_objext conftest$ac_exeext
6168 if { (ac_try="$ac_link"
6169 case "(($ac_try" in
6170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171   *) ac_try_echo=$ac_try;;
6172 esac
6173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6174 $as_echo "$ac_try_echo") >&5
6175   (eval "$ac_link") 2>conftest.er1
6176   ac_status=$?
6177   grep -v '^ *+' conftest.er1 >conftest.err
6178   rm -f conftest.er1
6179   cat conftest.err >&5
6180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); } && {
6182          test -z "$ac_c_werror_flag" ||
6183          test ! -s conftest.err
6184        } && test -s conftest$ac_exeext && {
6185          test "$cross_compiling" = yes ||
6186          $as_test_x conftest$ac_exeext
6187        }; then
6188   :
6189 else
6190   $as_echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6192
6193         { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6194 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
6195 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6196   $as_echo_n "(cached) " >&6
6197 else
6198   ac_check_lib_save_LIBS=$LIBS
6199 LIBS="-ldnet  $LIBS"
6200 cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h.  */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h.  */
6206
6207 /* Override any GCC internal prototype to avoid an error.
6208    Use char because int might match the return type of a GCC
6209    builtin and then its argument prototype would still apply.  */
6210 #ifdef __cplusplus
6211 extern "C"
6212 #endif
6213 char dnet_ntoa ();
6214 int
6215 main ()
6216 {
6217 return dnet_ntoa ();
6218   ;
6219   return 0;
6220 }
6221 _ACEOF
6222 rm -f conftest.$ac_objext conftest$ac_exeext
6223 if { (ac_try="$ac_link"
6224 case "(($ac_try" in
6225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226   *) ac_try_echo=$ac_try;;
6227 esac
6228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6229 $as_echo "$ac_try_echo") >&5
6230   (eval "$ac_link") 2>conftest.er1
6231   ac_status=$?
6232   grep -v '^ *+' conftest.er1 >conftest.err
6233   rm -f conftest.er1
6234   cat conftest.err >&5
6235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); } && {
6237          test -z "$ac_c_werror_flag" ||
6238          test ! -s conftest.err
6239        } && test -s conftest$ac_exeext && {
6240          test "$cross_compiling" = yes ||
6241          $as_test_x conftest$ac_exeext
6242        }; then
6243   ac_cv_lib_dnet_dnet_ntoa=yes
6244 else
6245   $as_echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6247
6248         ac_cv_lib_dnet_dnet_ntoa=no
6249 fi
6250
6251 rm -rf conftest.dSYM
6252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6253       conftest$ac_exeext conftest.$ac_ext
6254 LIBS=$ac_check_lib_save_LIBS
6255 fi
6256 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6257 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6258 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
6259   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6260 fi
6261
6262     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6263       { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6264 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6265 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6266   $as_echo_n "(cached) " >&6
6267 else
6268   ac_check_lib_save_LIBS=$LIBS
6269 LIBS="-ldnet_stub  $LIBS"
6270 cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h.  */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h.  */
6276
6277 /* Override any GCC internal prototype to avoid an error.
6278    Use char because int might match the return type of a GCC
6279    builtin and then its argument prototype would still apply.  */
6280 #ifdef __cplusplus
6281 extern "C"
6282 #endif
6283 char dnet_ntoa ();
6284 int
6285 main ()
6286 {
6287 return dnet_ntoa ();
6288   ;
6289   return 0;
6290 }
6291 _ACEOF
6292 rm -f conftest.$ac_objext conftest$ac_exeext
6293 if { (ac_try="$ac_link"
6294 case "(($ac_try" in
6295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296   *) ac_try_echo=$ac_try;;
6297 esac
6298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6299 $as_echo "$ac_try_echo") >&5
6300   (eval "$ac_link") 2>conftest.er1
6301   ac_status=$?
6302   grep -v '^ *+' conftest.er1 >conftest.err
6303   rm -f conftest.er1
6304   cat conftest.err >&5
6305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306   (exit $ac_status); } && {
6307          test -z "$ac_c_werror_flag" ||
6308          test ! -s conftest.err
6309        } && test -s conftest$ac_exeext && {
6310          test "$cross_compiling" = yes ||
6311          $as_test_x conftest$ac_exeext
6312        }; then
6313   ac_cv_lib_dnet_stub_dnet_ntoa=yes
6314 else
6315   $as_echo "$as_me: failed program was:" >&5
6316 sed 's/^/| /' conftest.$ac_ext >&5
6317
6318         ac_cv_lib_dnet_stub_dnet_ntoa=no
6319 fi
6320
6321 rm -rf conftest.dSYM
6322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6323       conftest$ac_exeext conftest.$ac_ext
6324 LIBS=$ac_check_lib_save_LIBS
6325 fi
6326 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6327 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6328 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
6329   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6330 fi
6331
6332     fi
6333 fi
6334
6335 rm -rf conftest.dSYM
6336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6337       conftest$ac_exeext conftest.$ac_ext
6338     LIBS="$ac_xsave_LIBS"
6339
6340     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6341     # to get the SysV transport functions.
6342     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6343     # needs -lnsl.
6344     # The nsl library prevents programs from opening the X display
6345     # on Irix 5.2, according to T.E. Dickey.
6346     # The functions gethostbyname, getservbyname, and inet_addr are
6347     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6348     { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
6349 $as_echo_n "checking for gethostbyname... " >&6; }
6350 if test "${ac_cv_func_gethostbyname+set}" = set; then
6351   $as_echo_n "(cached) " >&6
6352 else
6353   cat >conftest.$ac_ext <<_ACEOF
6354 /* confdefs.h.  */
6355 _ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h.  */
6359 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6361 #define gethostbyname innocuous_gethostbyname
6362
6363 /* System header to define __stub macros and hopefully few prototypes,
6364     which can conflict with char gethostbyname (); below.
6365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6366     <limits.h> exists even on freestanding compilers.  */
6367
6368 #ifdef __STDC__
6369 # include <limits.h>
6370 #else
6371 # include <assert.h>
6372 #endif
6373
6374 #undef gethostbyname
6375
6376 /* Override any GCC internal prototype to avoid an error.
6377    Use char because int might match the return type of a GCC
6378    builtin and then its argument prototype would still apply.  */
6379 #ifdef __cplusplus
6380 extern "C"
6381 #endif
6382 char gethostbyname ();
6383 /* The GNU C library defines this for functions which it implements
6384     to always fail with ENOSYS.  Some functions are actually named
6385     something starting with __ and the normal name is an alias.  */
6386 #if defined __stub_gethostbyname || defined __stub___gethostbyname
6387 choke me
6388 #endif
6389
6390 int
6391 main ()
6392 {
6393 return gethostbyname ();
6394   ;
6395   return 0;
6396 }
6397 _ACEOF
6398 rm -f conftest.$ac_objext conftest$ac_exeext
6399 if { (ac_try="$ac_link"
6400 case "(($ac_try" in
6401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402   *) ac_try_echo=$ac_try;;
6403 esac
6404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6405 $as_echo "$ac_try_echo") >&5
6406   (eval "$ac_link") 2>conftest.er1
6407   ac_status=$?
6408   grep -v '^ *+' conftest.er1 >conftest.err
6409   rm -f conftest.er1
6410   cat conftest.err >&5
6411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412   (exit $ac_status); } && {
6413          test -z "$ac_c_werror_flag" ||
6414          test ! -s conftest.err
6415        } && test -s conftest$ac_exeext && {
6416          test "$cross_compiling" = yes ||
6417          $as_test_x conftest$ac_exeext
6418        }; then
6419   ac_cv_func_gethostbyname=yes
6420 else
6421   $as_echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6423
6424         ac_cv_func_gethostbyname=no
6425 fi
6426
6427 rm -rf conftest.dSYM
6428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6429       conftest$ac_exeext conftest.$ac_ext
6430 fi
6431 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6432 $as_echo "$ac_cv_func_gethostbyname" >&6; }
6433
6434     if test $ac_cv_func_gethostbyname = no; then
6435       { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6436 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6437 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6438   $as_echo_n "(cached) " >&6
6439 else
6440   ac_check_lib_save_LIBS=$LIBS
6441 LIBS="-lnsl  $LIBS"
6442 cat >conftest.$ac_ext <<_ACEOF
6443 /* confdefs.h.  */
6444 _ACEOF
6445 cat confdefs.h >>conftest.$ac_ext
6446 cat >>conftest.$ac_ext <<_ACEOF
6447 /* end confdefs.h.  */
6448
6449 /* Override any GCC internal prototype to avoid an error.
6450    Use char because int might match the return type of a GCC
6451    builtin and then its argument prototype would still apply.  */
6452 #ifdef __cplusplus
6453 extern "C"
6454 #endif
6455 char gethostbyname ();
6456 int
6457 main ()
6458 {
6459 return gethostbyname ();
6460   ;
6461   return 0;
6462 }
6463 _ACEOF
6464 rm -f conftest.$ac_objext conftest$ac_exeext
6465 if { (ac_try="$ac_link"
6466 case "(($ac_try" in
6467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468   *) ac_try_echo=$ac_try;;
6469 esac
6470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6471 $as_echo "$ac_try_echo") >&5
6472   (eval "$ac_link") 2>conftest.er1
6473   ac_status=$?
6474   grep -v '^ *+' conftest.er1 >conftest.err
6475   rm -f conftest.er1
6476   cat conftest.err >&5
6477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); } && {
6479          test -z "$ac_c_werror_flag" ||
6480          test ! -s conftest.err
6481        } && test -s conftest$ac_exeext && {
6482          test "$cross_compiling" = yes ||
6483          $as_test_x conftest$ac_exeext
6484        }; then
6485   ac_cv_lib_nsl_gethostbyname=yes
6486 else
6487   $as_echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6489
6490         ac_cv_lib_nsl_gethostbyname=no
6491 fi
6492
6493 rm -rf conftest.dSYM
6494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6495       conftest$ac_exeext conftest.$ac_ext
6496 LIBS=$ac_check_lib_save_LIBS
6497 fi
6498 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6499 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6500 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
6501   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6502 fi
6503
6504       if test $ac_cv_lib_nsl_gethostbyname = no; then
6505         { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6506 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6507 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6508   $as_echo_n "(cached) " >&6
6509 else
6510   ac_check_lib_save_LIBS=$LIBS
6511 LIBS="-lbsd  $LIBS"
6512 cat >conftest.$ac_ext <<_ACEOF
6513 /* confdefs.h.  */
6514 _ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h.  */
6518
6519 /* Override any GCC internal prototype to avoid an error.
6520    Use char because int might match the return type of a GCC
6521    builtin and then its argument prototype would still apply.  */
6522 #ifdef __cplusplus
6523 extern "C"
6524 #endif
6525 char gethostbyname ();
6526 int
6527 main ()
6528 {
6529 return gethostbyname ();
6530   ;
6531   return 0;
6532 }
6533 _ACEOF
6534 rm -f conftest.$ac_objext conftest$ac_exeext
6535 if { (ac_try="$ac_link"
6536 case "(($ac_try" in
6537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538   *) ac_try_echo=$ac_try;;
6539 esac
6540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6541 $as_echo "$ac_try_echo") >&5
6542   (eval "$ac_link") 2>conftest.er1
6543   ac_status=$?
6544   grep -v '^ *+' conftest.er1 >conftest.err
6545   rm -f conftest.er1
6546   cat conftest.err >&5
6547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548   (exit $ac_status); } && {
6549          test -z "$ac_c_werror_flag" ||
6550          test ! -s conftest.err
6551        } && test -s conftest$ac_exeext && {
6552          test "$cross_compiling" = yes ||
6553          $as_test_x conftest$ac_exeext
6554        }; then
6555   ac_cv_lib_bsd_gethostbyname=yes
6556 else
6557   $as_echo "$as_me: failed program was:" >&5
6558 sed 's/^/| /' conftest.$ac_ext >&5
6559
6560         ac_cv_lib_bsd_gethostbyname=no
6561 fi
6562
6563 rm -rf conftest.dSYM
6564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6565       conftest$ac_exeext conftest.$ac_ext
6566 LIBS=$ac_check_lib_save_LIBS
6567 fi
6568 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6569 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6570 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
6571   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6572 fi
6573
6574       fi
6575     fi
6576
6577     # lieder@skyler.mavd.honeywell.com says without -lsocket,
6578     # socket/setsockopt and other routines are undefined under SCO ODT
6579     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6580     # on later versions), says Simon Leinen: it contains gethostby*
6581     # variants that don't use the name server (or something).  -lsocket
6582     # must be given before -lnsl if both are needed.  We assume that
6583     # if connect needs -lnsl, so does gethostbyname.
6584     { $as_echo "$as_me:$LINENO: checking for connect" >&5
6585 $as_echo_n "checking for connect... " >&6; }
6586 if test "${ac_cv_func_connect+set}" = set; then
6587   $as_echo_n "(cached) " >&6
6588 else
6589   cat >conftest.$ac_ext <<_ACEOF
6590 /* confdefs.h.  */
6591 _ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h.  */
6595 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6596    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6597 #define connect innocuous_connect
6598
6599 /* System header to define __stub macros and hopefully few prototypes,
6600     which can conflict with char connect (); below.
6601     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6602     <limits.h> exists even on freestanding compilers.  */
6603
6604 #ifdef __STDC__
6605 # include <limits.h>
6606 #else
6607 # include <assert.h>
6608 #endif
6609
6610 #undef connect
6611
6612 /* Override any GCC internal prototype to avoid an error.
6613    Use char because int might match the return type of a GCC
6614    builtin and then its argument prototype would still apply.  */
6615 #ifdef __cplusplus
6616 extern "C"
6617 #endif
6618 char connect ();
6619 /* The GNU C library defines this for functions which it implements
6620     to always fail with ENOSYS.  Some functions are actually named
6621     something starting with __ and the normal name is an alias.  */
6622 #if defined __stub_connect || defined __stub___connect
6623 choke me
6624 #endif
6625
6626 int
6627 main ()
6628 {
6629 return connect ();
6630   ;
6631   return 0;
6632 }
6633 _ACEOF
6634 rm -f conftest.$ac_objext conftest$ac_exeext
6635 if { (ac_try="$ac_link"
6636 case "(($ac_try" in
6637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638   *) ac_try_echo=$ac_try;;
6639 esac
6640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6641 $as_echo "$ac_try_echo") >&5
6642   (eval "$ac_link") 2>conftest.er1
6643   ac_status=$?
6644   grep -v '^ *+' conftest.er1 >conftest.err
6645   rm -f conftest.er1
6646   cat conftest.err >&5
6647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648   (exit $ac_status); } && {
6649          test -z "$ac_c_werror_flag" ||
6650          test ! -s conftest.err
6651        } && test -s conftest$ac_exeext && {
6652          test "$cross_compiling" = yes ||
6653          $as_test_x conftest$ac_exeext
6654        }; then
6655   ac_cv_func_connect=yes
6656 else
6657   $as_echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6659
6660         ac_cv_func_connect=no
6661 fi
6662
6663 rm -rf conftest.dSYM
6664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6665       conftest$ac_exeext conftest.$ac_ext
6666 fi
6667 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6668 $as_echo "$ac_cv_func_connect" >&6; }
6669
6670     if test $ac_cv_func_connect = no; then
6671       { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6672 $as_echo_n "checking for connect in -lsocket... " >&6; }
6673 if test "${ac_cv_lib_socket_connect+set}" = set; then
6674   $as_echo_n "(cached) " >&6
6675 else
6676   ac_check_lib_save_LIBS=$LIBS
6677 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6678 cat >conftest.$ac_ext <<_ACEOF
6679 /* confdefs.h.  */
6680 _ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h.  */
6684
6685 /* Override any GCC internal prototype to avoid an error.
6686    Use char because int might match the return type of a GCC
6687    builtin and then its argument prototype would still apply.  */
6688 #ifdef __cplusplus
6689 extern "C"
6690 #endif
6691 char connect ();
6692 int
6693 main ()
6694 {
6695 return connect ();
6696   ;
6697   return 0;
6698 }
6699 _ACEOF
6700 rm -f conftest.$ac_objext conftest$ac_exeext
6701 if { (ac_try="$ac_link"
6702 case "(($ac_try" in
6703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704   *) ac_try_echo=$ac_try;;
6705 esac
6706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6707 $as_echo "$ac_try_echo") >&5
6708   (eval "$ac_link") 2>conftest.er1
6709   ac_status=$?
6710   grep -v '^ *+' conftest.er1 >conftest.err
6711   rm -f conftest.er1
6712   cat conftest.err >&5
6713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714   (exit $ac_status); } && {
6715          test -z "$ac_c_werror_flag" ||
6716          test ! -s conftest.err
6717        } && test -s conftest$ac_exeext && {
6718          test "$cross_compiling" = yes ||
6719          $as_test_x conftest$ac_exeext
6720        }; then
6721   ac_cv_lib_socket_connect=yes
6722 else
6723   $as_echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6725
6726         ac_cv_lib_socket_connect=no
6727 fi
6728
6729 rm -rf conftest.dSYM
6730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6731       conftest$ac_exeext conftest.$ac_ext
6732 LIBS=$ac_check_lib_save_LIBS
6733 fi
6734 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6735 $as_echo "$ac_cv_lib_socket_connect" >&6; }
6736 if test "x$ac_cv_lib_socket_connect" = x""yes; then
6737   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6738 fi
6739
6740     fi
6741
6742     # Guillermo Gomez says -lposix is necessary on A/UX.
6743     { $as_echo "$as_me:$LINENO: checking for remove" >&5
6744 $as_echo_n "checking for remove... " >&6; }
6745 if test "${ac_cv_func_remove+set}" = set; then
6746   $as_echo_n "(cached) " >&6
6747 else
6748   cat >conftest.$ac_ext <<_ACEOF
6749 /* confdefs.h.  */
6750 _ACEOF
6751 cat confdefs.h >>conftest.$ac_ext
6752 cat >>conftest.$ac_ext <<_ACEOF
6753 /* end confdefs.h.  */
6754 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6756 #define remove innocuous_remove
6757
6758 /* System header to define __stub macros and hopefully few prototypes,
6759     which can conflict with char remove (); below.
6760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6761     <limits.h> exists even on freestanding compilers.  */
6762
6763 #ifdef __STDC__
6764 # include <limits.h>
6765 #else
6766 # include <assert.h>
6767 #endif
6768
6769 #undef remove
6770
6771 /* Override any GCC internal prototype to avoid an error.
6772    Use char because int might match the return type of a GCC
6773    builtin and then its argument prototype would still apply.  */
6774 #ifdef __cplusplus
6775 extern "C"
6776 #endif
6777 char remove ();
6778 /* The GNU C library defines this for functions which it implements
6779     to always fail with ENOSYS.  Some functions are actually named
6780     something starting with __ and the normal name is an alias.  */
6781 #if defined __stub_remove || defined __stub___remove
6782 choke me
6783 #endif
6784
6785 int
6786 main ()
6787 {
6788 return remove ();
6789   ;
6790   return 0;
6791 }
6792 _ACEOF
6793 rm -f conftest.$ac_objext conftest$ac_exeext
6794 if { (ac_try="$ac_link"
6795 case "(($ac_try" in
6796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6797   *) ac_try_echo=$ac_try;;
6798 esac
6799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6800 $as_echo "$ac_try_echo") >&5
6801   (eval "$ac_link") 2>conftest.er1
6802   ac_status=$?
6803   grep -v '^ *+' conftest.er1 >conftest.err
6804   rm -f conftest.er1
6805   cat conftest.err >&5
6806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); } && {
6808          test -z "$ac_c_werror_flag" ||
6809          test ! -s conftest.err
6810        } && test -s conftest$ac_exeext && {
6811          test "$cross_compiling" = yes ||
6812          $as_test_x conftest$ac_exeext
6813        }; then
6814   ac_cv_func_remove=yes
6815 else
6816   $as_echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6818
6819         ac_cv_func_remove=no
6820 fi
6821
6822 rm -rf conftest.dSYM
6823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6824       conftest$ac_exeext conftest.$ac_ext
6825 fi
6826 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6827 $as_echo "$ac_cv_func_remove" >&6; }
6828
6829     if test $ac_cv_func_remove = no; then
6830       { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6831 $as_echo_n "checking for remove in -lposix... " >&6; }
6832 if test "${ac_cv_lib_posix_remove+set}" = set; then
6833   $as_echo_n "(cached) " >&6
6834 else
6835   ac_check_lib_save_LIBS=$LIBS
6836 LIBS="-lposix  $LIBS"
6837 cat >conftest.$ac_ext <<_ACEOF
6838 /* confdefs.h.  */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h.  */
6843
6844 /* Override any GCC internal prototype to avoid an error.
6845    Use char because int might match the return type of a GCC
6846    builtin and then its argument prototype would still apply.  */
6847 #ifdef __cplusplus
6848 extern "C"
6849 #endif
6850 char remove ();
6851 int
6852 main ()
6853 {
6854 return remove ();
6855   ;
6856   return 0;
6857 }
6858 _ACEOF
6859 rm -f conftest.$ac_objext conftest$ac_exeext
6860 if { (ac_try="$ac_link"
6861 case "(($ac_try" in
6862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863   *) ac_try_echo=$ac_try;;
6864 esac
6865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6866 $as_echo "$ac_try_echo") >&5
6867   (eval "$ac_link") 2>conftest.er1
6868   ac_status=$?
6869   grep -v '^ *+' conftest.er1 >conftest.err
6870   rm -f conftest.er1
6871   cat conftest.err >&5
6872   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873   (exit $ac_status); } && {
6874          test -z "$ac_c_werror_flag" ||
6875          test ! -s conftest.err
6876        } && test -s conftest$ac_exeext && {
6877          test "$cross_compiling" = yes ||
6878          $as_test_x conftest$ac_exeext
6879        }; then
6880   ac_cv_lib_posix_remove=yes
6881 else
6882   $as_echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6884
6885         ac_cv_lib_posix_remove=no
6886 fi
6887
6888 rm -rf conftest.dSYM
6889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6890       conftest$ac_exeext conftest.$ac_ext
6891 LIBS=$ac_check_lib_save_LIBS
6892 fi
6893 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6894 $as_echo "$ac_cv_lib_posix_remove" >&6; }
6895 if test "x$ac_cv_lib_posix_remove" = x""yes; then
6896   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6897 fi
6898
6899     fi
6900
6901     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6902     { $as_echo "$as_me:$LINENO: checking for shmat" >&5
6903 $as_echo_n "checking for shmat... " >&6; }
6904 if test "${ac_cv_func_shmat+set}" = set; then
6905   $as_echo_n "(cached) " >&6
6906 else
6907   cat >conftest.$ac_ext <<_ACEOF
6908 /* confdefs.h.  */
6909 _ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h.  */
6913 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6914    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6915 #define shmat innocuous_shmat
6916
6917 /* System header to define __stub macros and hopefully few prototypes,
6918     which can conflict with char shmat (); below.
6919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6920     <limits.h> exists even on freestanding compilers.  */
6921
6922 #ifdef __STDC__
6923 # include <limits.h>
6924 #else
6925 # include <assert.h>
6926 #endif
6927
6928 #undef shmat
6929
6930 /* Override any GCC internal prototype to avoid an error.
6931    Use char because int might match the return type of a GCC
6932    builtin and then its argument prototype would still apply.  */
6933 #ifdef __cplusplus
6934 extern "C"
6935 #endif
6936 char shmat ();
6937 /* The GNU C library defines this for functions which it implements
6938     to always fail with ENOSYS.  Some functions are actually named
6939     something starting with __ and the normal name is an alias.  */
6940 #if defined __stub_shmat || defined __stub___shmat
6941 choke me
6942 #endif
6943
6944 int
6945 main ()
6946 {
6947 return shmat ();
6948   ;
6949   return 0;
6950 }
6951 _ACEOF
6952 rm -f conftest.$ac_objext conftest$ac_exeext
6953 if { (ac_try="$ac_link"
6954 case "(($ac_try" in
6955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956   *) ac_try_echo=$ac_try;;
6957 esac
6958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6959 $as_echo "$ac_try_echo") >&5
6960   (eval "$ac_link") 2>conftest.er1
6961   ac_status=$?
6962   grep -v '^ *+' conftest.er1 >conftest.err
6963   rm -f conftest.er1
6964   cat conftest.err >&5
6965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); } && {
6967          test -z "$ac_c_werror_flag" ||
6968          test ! -s conftest.err
6969        } && test -s conftest$ac_exeext && {
6970          test "$cross_compiling" = yes ||
6971          $as_test_x conftest$ac_exeext
6972        }; then
6973   ac_cv_func_shmat=yes
6974 else
6975   $as_echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6977
6978         ac_cv_func_shmat=no
6979 fi
6980
6981 rm -rf conftest.dSYM
6982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6983       conftest$ac_exeext conftest.$ac_ext
6984 fi
6985 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6986 $as_echo "$ac_cv_func_shmat" >&6; }
6987
6988     if test $ac_cv_func_shmat = no; then
6989       { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6990 $as_echo_n "checking for shmat in -lipc... " >&6; }
6991 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6992   $as_echo_n "(cached) " >&6
6993 else
6994   ac_check_lib_save_LIBS=$LIBS
6995 LIBS="-lipc  $LIBS"
6996 cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h.  */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h.  */
7002
7003 /* Override any GCC internal prototype to avoid an error.
7004    Use char because int might match the return type of a GCC
7005    builtin and then its argument prototype would still apply.  */
7006 #ifdef __cplusplus
7007 extern "C"
7008 #endif
7009 char shmat ();
7010 int
7011 main ()
7012 {
7013 return shmat ();
7014   ;
7015   return 0;
7016 }
7017 _ACEOF
7018 rm -f conftest.$ac_objext conftest$ac_exeext
7019 if { (ac_try="$ac_link"
7020 case "(($ac_try" in
7021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7022   *) ac_try_echo=$ac_try;;
7023 esac
7024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7025 $as_echo "$ac_try_echo") >&5
7026   (eval "$ac_link") 2>conftest.er1
7027   ac_status=$?
7028   grep -v '^ *+' conftest.er1 >conftest.err
7029   rm -f conftest.er1
7030   cat conftest.err >&5
7031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032   (exit $ac_status); } && {
7033          test -z "$ac_c_werror_flag" ||
7034          test ! -s conftest.err
7035        } && test -s conftest$ac_exeext && {
7036          test "$cross_compiling" = yes ||
7037          $as_test_x conftest$ac_exeext
7038        }; then
7039   ac_cv_lib_ipc_shmat=yes
7040 else
7041   $as_echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7043
7044         ac_cv_lib_ipc_shmat=no
7045 fi
7046
7047 rm -rf conftest.dSYM
7048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7049       conftest$ac_exeext conftest.$ac_ext
7050 LIBS=$ac_check_lib_save_LIBS
7051 fi
7052 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7053 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
7054 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
7055   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7056 fi
7057
7058     fi
7059   fi
7060
7061   # Check for libraries that X11R6 Xt/Xaw programs need.
7062   ac_save_LDFLAGS=$LDFLAGS
7063   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7064   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7065   # check for ICE first), but we must link in the order -lSM -lICE or
7066   # we get undefined symbols.  So assume we have SM if we have ICE.
7067   # These have to be linked with before -lX11, unlike the other
7068   # libraries we check for below, so use a different variable.
7069   # John Interrante, Karl Berry
7070   { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7071 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
7072 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7073   $as_echo_n "(cached) " >&6
7074 else
7075   ac_check_lib_save_LIBS=$LIBS
7076 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7077 cat >conftest.$ac_ext <<_ACEOF
7078 /* confdefs.h.  */
7079 _ACEOF
7080 cat confdefs.h >>conftest.$ac_ext
7081 cat >>conftest.$ac_ext <<_ACEOF
7082 /* end confdefs.h.  */
7083
7084 /* Override any GCC internal prototype to avoid an error.
7085    Use char because int might match the return type of a GCC
7086    builtin and then its argument prototype would still apply.  */
7087 #ifdef __cplusplus
7088 extern "C"
7089 #endif
7090 char IceConnectionNumber ();
7091 int
7092 main ()
7093 {
7094 return IceConnectionNumber ();
7095   ;
7096   return 0;
7097 }
7098 _ACEOF
7099 rm -f conftest.$ac_objext conftest$ac_exeext
7100 if { (ac_try="$ac_link"
7101 case "(($ac_try" in
7102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103   *) ac_try_echo=$ac_try;;
7104 esac
7105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7106 $as_echo "$ac_try_echo") >&5
7107   (eval "$ac_link") 2>conftest.er1
7108   ac_status=$?
7109   grep -v '^ *+' conftest.er1 >conftest.err
7110   rm -f conftest.er1
7111   cat conftest.err >&5
7112   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113   (exit $ac_status); } && {
7114          test -z "$ac_c_werror_flag" ||
7115          test ! -s conftest.err
7116        } && test -s conftest$ac_exeext && {
7117          test "$cross_compiling" = yes ||
7118          $as_test_x conftest$ac_exeext
7119        }; then
7120   ac_cv_lib_ICE_IceConnectionNumber=yes
7121 else
7122   $as_echo "$as_me: failed program was:" >&5
7123 sed 's/^/| /' conftest.$ac_ext >&5
7124
7125         ac_cv_lib_ICE_IceConnectionNumber=no
7126 fi
7127
7128 rm -rf conftest.dSYM
7129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7130       conftest$ac_exeext conftest.$ac_ext
7131 LIBS=$ac_check_lib_save_LIBS
7132 fi
7133 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7134 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
7135 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
7136   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7137 fi
7138
7139   LDFLAGS=$ac_save_LDFLAGS
7140
7141 fi
7142
7143 if test -n "$no_x" ; then
7144   echo $PRODUCT requires the X Window System header files and libraries!
7145   echo They were not found on your system.  See FAQ topic C.2.
7146   echo configure failed
7147   exit 1
7148 fi
7149
7150 # Make sure we can run config.sub.
7151 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7152   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
7153 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
7154    { (exit 1); exit 1; }; }
7155
7156 { $as_echo "$as_me:$LINENO: checking build system type" >&5
7157 $as_echo_n "checking build system type... " >&6; }
7158 if test "${ac_cv_build+set}" = set; then
7159   $as_echo_n "(cached) " >&6
7160 else
7161   ac_build_alias=$build_alias
7162 test "x$ac_build_alias" = x &&
7163   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7164 test "x$ac_build_alias" = x &&
7165   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7166 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7167    { (exit 1); exit 1; }; }
7168 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7169   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
7170 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
7171    { (exit 1); exit 1; }; }
7172
7173 fi
7174 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7175 $as_echo "$ac_cv_build" >&6; }
7176 case $ac_cv_build in
7177 *-*-*) ;;
7178 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
7179 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
7180    { (exit 1); exit 1; }; };;
7181 esac
7182 build=$ac_cv_build
7183 ac_save_IFS=$IFS; IFS='-'
7184 set x $ac_cv_build
7185 shift
7186 build_cpu=$1
7187 build_vendor=$2
7188 shift; shift
7189 # Remember, the first character of IFS is used to create $*,
7190 # except with old shells:
7191 build_os=$*
7192 IFS=$ac_save_IFS
7193 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7194
7195
7196 { $as_echo "$as_me:$LINENO: checking host system type" >&5
7197 $as_echo_n "checking host system type... " >&6; }
7198 if test "${ac_cv_host+set}" = set; then
7199   $as_echo_n "(cached) " >&6
7200 else
7201   if test "x$host_alias" = x; then
7202   ac_cv_host=$ac_cv_build
7203 else
7204   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7205     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
7206 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
7207    { (exit 1); exit 1; }; }
7208 fi
7209
7210 fi
7211 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7212 $as_echo "$ac_cv_host" >&6; }
7213 case $ac_cv_host in
7214 *-*-*) ;;
7215 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
7216 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
7217    { (exit 1); exit 1; }; };;
7218 esac
7219 host=$ac_cv_host
7220 ac_save_IFS=$IFS; IFS='-'
7221 set x $ac_cv_host
7222 shift
7223 host_cpu=$1
7224 host_vendor=$2
7225 shift; shift
7226 # Remember, the first character of IFS is used to create $*,
7227 # except with old shells:
7228 host_os=$*
7229 IFS=$ac_save_IFS
7230 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7231
7232
7233
7234 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7235 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7236 set x ${MAKE-make}
7237 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7238 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
7239   $as_echo_n "(cached) " >&6
7240 else
7241   cat >conftest.make <<\_ACEOF
7242 SHELL = /bin/sh
7243 all:
7244         @echo '@@@%%%=$(MAKE)=@@@%%%'
7245 _ACEOF
7246 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7247 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7248   *@@@%%%=?*=@@@%%%*)
7249     eval ac_cv_prog_make_${ac_make}_set=yes;;
7250   *)
7251     eval ac_cv_prog_make_${ac_make}_set=no;;
7252 esac
7253 rm -f conftest.make
7254 fi
7255 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7256   { $as_echo "$as_me:$LINENO: result: yes" >&5
7257 $as_echo "yes" >&6; }
7258   SET_MAKE=
7259 else
7260   { $as_echo "$as_me:$LINENO: result: no" >&5
7261 $as_echo "no" >&6; }
7262   SET_MAKE="MAKE=${MAKE-make}"
7263 fi
7264
7265
7266         MKINSTALLDIRS=
7267   if test -n "$ac_aux_dir"; then
7268     case "$ac_aux_dir" in
7269       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
7270       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
7271     esac
7272   fi
7273   if test -z "$MKINSTALLDIRS"; then
7274     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7275   fi
7276
7277
7278
7279   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
7280 $as_echo_n "checking whether NLS is requested... " >&6; }
7281     # Check whether --enable-nls was given.
7282 if test "${enable_nls+set}" = set; then
7283   enableval=$enable_nls; USE_NLS=$enableval
7284 else
7285   USE_NLS=yes
7286 fi
7287
7288   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
7289 $as_echo "$USE_NLS" >&6; }
7290
7291
7292
7293
7294
7295
7296 # Prepare PATH_SEPARATOR.
7297 # The user is always right.
7298 if test "${PATH_SEPARATOR+set}" != set; then
7299   echo "#! /bin/sh" >conf$$.sh
7300   echo  "exit 0"   >>conf$$.sh
7301   chmod +x conf$$.sh
7302   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7303     PATH_SEPARATOR=';'
7304   else
7305     PATH_SEPARATOR=:
7306   fi
7307   rm -f conf$$.sh
7308 fi
7309
7310 # Find out how to test for executable files. Don't use a zero-byte file,
7311 # as systems may use methods other than mode bits to determine executability.
7312 cat >conf$$.file <<_ASEOF
7313 #! /bin/sh
7314 exit 0
7315 _ASEOF
7316 chmod +x conf$$.file
7317 if test -x conf$$.file >/dev/null 2>&1; then
7318   ac_executable_p="test -x"
7319 else
7320   ac_executable_p="test -f"
7321 fi
7322 rm -f conf$$.file
7323
7324 # Extract the first word of "msgfmt", so it can be a program name with args.
7325 set dummy msgfmt; ac_word=$2
7326 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if test "${ac_cv_path_MSGFMT+set}" = set; then
7329   $as_echo_n "(cached) " >&6
7330 else
7331   case "$MSGFMT" in
7332   [\\/]* | ?:[\\/]*)
7333     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7334     ;;
7335   *)
7336     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7337     for ac_dir in $PATH; do
7338       IFS="$ac_save_IFS"
7339       test -z "$ac_dir" && ac_dir=.
7340       for ac_exec_ext in '' $ac_executable_extensions; do
7341         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7342           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
7343      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7344             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7345             break 2
7346           fi
7347         fi
7348       done
7349     done
7350     IFS="$ac_save_IFS"
7351   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7352     ;;
7353 esac
7354 fi
7355 MSGFMT="$ac_cv_path_MSGFMT"
7356 if test "$MSGFMT" != ":"; then
7357   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
7358 $as_echo "$MSGFMT" >&6; }
7359 else
7360   { $as_echo "$as_me:$LINENO: result: no" >&5
7361 $as_echo "no" >&6; }
7362 fi
7363
7364   # Extract the first word of "gmsgfmt", so it can be a program name with args.
7365 set dummy gmsgfmt; ac_word=$2
7366 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7369   $as_echo_n "(cached) " >&6
7370 else
7371   case $GMSGFMT in
7372   [\\/]* | ?:[\\/]*)
7373   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7374   ;;
7375   *)
7376   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in $PATH
7378 do
7379   IFS=$as_save_IFS
7380   test -z "$as_dir" && as_dir=.
7381   for ac_exec_ext in '' $ac_executable_extensions; do
7382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7383     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7384     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7385     break 2
7386   fi
7387 done
7388 done
7389 IFS=$as_save_IFS
7390
7391   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7392   ;;
7393 esac
7394 fi
7395 GMSGFMT=$ac_cv_path_GMSGFMT
7396 if test -n "$GMSGFMT"; then
7397   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7398 $as_echo "$GMSGFMT" >&6; }
7399 else
7400   { $as_echo "$as_me:$LINENO: result: no" >&5
7401 $as_echo "no" >&6; }
7402 fi
7403
7404
7405
7406
7407 # Prepare PATH_SEPARATOR.
7408 # The user is always right.
7409 if test "${PATH_SEPARATOR+set}" != set; then
7410   echo "#! /bin/sh" >conf$$.sh
7411   echo  "exit 0"   >>conf$$.sh
7412   chmod +x conf$$.sh
7413   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7414     PATH_SEPARATOR=';'
7415   else
7416     PATH_SEPARATOR=:
7417   fi
7418   rm -f conf$$.sh
7419 fi
7420
7421 # Find out how to test for executable files. Don't use a zero-byte file,
7422 # as systems may use methods other than mode bits to determine executability.
7423 cat >conf$$.file <<_ASEOF
7424 #! /bin/sh
7425 exit 0
7426 _ASEOF
7427 chmod +x conf$$.file
7428 if test -x conf$$.file >/dev/null 2>&1; then
7429   ac_executable_p="test -x"
7430 else
7431   ac_executable_p="test -f"
7432 fi
7433 rm -f conf$$.file
7434
7435 # Extract the first word of "xgettext", so it can be a program name with args.
7436 set dummy xgettext; ac_word=$2
7437 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7440   $as_echo_n "(cached) " >&6
7441 else
7442   case "$XGETTEXT" in
7443   [\\/]* | ?:[\\/]*)
7444     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7445     ;;
7446   *)
7447     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7448     for ac_dir in $PATH; do
7449       IFS="$ac_save_IFS"
7450       test -z "$ac_dir" && ac_dir=.
7451       for ac_exec_ext in '' $ac_executable_extensions; do
7452         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7453           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7454      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7455             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7456             break 2
7457           fi
7458         fi
7459       done
7460     done
7461     IFS="$ac_save_IFS"
7462   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7463     ;;
7464 esac
7465 fi
7466 XGETTEXT="$ac_cv_path_XGETTEXT"
7467 if test "$XGETTEXT" != ":"; then
7468   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7469 $as_echo "$XGETTEXT" >&6; }
7470 else
7471   { $as_echo "$as_me:$LINENO: result: no" >&5
7472 $as_echo "no" >&6; }
7473 fi
7474
7475     rm -f messages.po
7476
7477
7478 # Prepare PATH_SEPARATOR.
7479 # The user is always right.
7480 if test "${PATH_SEPARATOR+set}" != set; then
7481   echo "#! /bin/sh" >conf$$.sh
7482   echo  "exit 0"   >>conf$$.sh
7483   chmod +x conf$$.sh
7484   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7485     PATH_SEPARATOR=';'
7486   else
7487     PATH_SEPARATOR=:
7488   fi
7489   rm -f conf$$.sh
7490 fi
7491
7492 # Find out how to test for executable files. Don't use a zero-byte file,
7493 # as systems may use methods other than mode bits to determine executability.
7494 cat >conf$$.file <<_ASEOF
7495 #! /bin/sh
7496 exit 0
7497 _ASEOF
7498 chmod +x conf$$.file
7499 if test -x conf$$.file >/dev/null 2>&1; then
7500   ac_executable_p="test -x"
7501 else
7502   ac_executable_p="test -f"
7503 fi
7504 rm -f conf$$.file
7505
7506 # Extract the first word of "msgmerge", so it can be a program name with args.
7507 set dummy msgmerge; ac_word=$2
7508 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7509 $as_echo_n "checking for $ac_word... " >&6; }
7510 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7511   $as_echo_n "(cached) " >&6
7512 else
7513   case "$MSGMERGE" in
7514   [\\/]* | ?:[\\/]*)
7515     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7516     ;;
7517   *)
7518     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7519     for ac_dir in $PATH; do
7520       IFS="$ac_save_IFS"
7521       test -z "$ac_dir" && ac_dir=.
7522       for ac_exec_ext in '' $ac_executable_extensions; do
7523         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7524           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
7525             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7526             break 2
7527           fi
7528         fi
7529       done
7530     done
7531     IFS="$ac_save_IFS"
7532   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7533     ;;
7534 esac
7535 fi
7536 MSGMERGE="$ac_cv_path_MSGMERGE"
7537 if test "$MSGMERGE" != ":"; then
7538   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7539 $as_echo "$MSGMERGE" >&6; }
7540 else
7541   { $as_echo "$as_me:$LINENO: result: no" >&5
7542 $as_echo "no" >&6; }
7543 fi
7544
7545
7546       if test "$GMSGFMT" != ":"; then
7547             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
7548        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7549       : ;
7550     else
7551       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
7552       { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
7553 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
7554       GMSGFMT=":"
7555     fi
7556   fi
7557
7558       if test "$XGETTEXT" != ":"; then
7559             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
7560        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7561       : ;
7562     else
7563       { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7564 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
7565       XGETTEXT=":"
7566     fi
7567         rm -f messages.po
7568   fi
7569
7570   ac_config_commands="$ac_config_commands default-1"
7571
7572
7573
7574       if test "X$prefix" = "XNONE"; then
7575     acl_final_prefix="$ac_default_prefix"
7576   else
7577     acl_final_prefix="$prefix"
7578   fi
7579   if test "X$exec_prefix" = "XNONE"; then
7580     acl_final_exec_prefix='${prefix}'
7581   else
7582     acl_final_exec_prefix="$exec_prefix"
7583   fi
7584   acl_save_prefix="$prefix"
7585   prefix="$acl_final_prefix"
7586   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7587   prefix="$acl_save_prefix"
7588
7589
7590 # Check whether --with-gnu-ld was given.
7591 if test "${with_gnu_ld+set}" = set; then
7592   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7593 else
7594   with_gnu_ld=no
7595 fi
7596
7597 # Prepare PATH_SEPARATOR.
7598 # The user is always right.
7599 if test "${PATH_SEPARATOR+set}" != set; then
7600   echo "#! /bin/sh" >conf$$.sh
7601   echo  "exit 0"   >>conf$$.sh
7602   chmod +x conf$$.sh
7603   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7604     PATH_SEPARATOR=';'
7605   else
7606     PATH_SEPARATOR=:
7607   fi
7608   rm -f conf$$.sh
7609 fi
7610 ac_prog=ld
7611 if test "$GCC" = yes; then
7612   # Check if gcc -print-prog-name=ld gives a path.
7613   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7614 $as_echo_n "checking for ld used by GCC... " >&6; }
7615   case $host in
7616   *-*-mingw*)
7617     # gcc leaves a trailing carriage return which upsets mingw
7618     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7619   *)
7620     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7621   esac
7622   case $ac_prog in
7623     # Accept absolute paths.
7624     [\\/]* | [A-Za-z]:[\\/]*)
7625       re_direlt='/[^/][^/]*/\.\./'
7626       # Canonicalize the path of ld
7627       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7628       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7629         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7630       done
7631       test -z "$LD" && LD="$ac_prog"
7632       ;;
7633   "")
7634     # If it fails, then pretend we aren't using GCC.
7635     ac_prog=ld
7636     ;;
7637   *)
7638     # If it is relative, then search for the first ld in PATH.
7639     with_gnu_ld=unknown
7640     ;;
7641   esac
7642 elif test "$with_gnu_ld" = yes; then
7643   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
7644 $as_echo_n "checking for GNU ld... " >&6; }
7645 else
7646   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7647 $as_echo_n "checking for non-GNU ld... " >&6; }
7648 fi
7649 if test "${acl_cv_path_LD+set}" = set; then
7650   $as_echo_n "(cached) " >&6
7651 else
7652   if test -z "$LD"; then
7653   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7654   for ac_dir in $PATH; do
7655     test -z "$ac_dir" && ac_dir=.
7656     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7657       acl_cv_path_LD="$ac_dir/$ac_prog"
7658       # Check to see if the program is GNU ld.  I'd rather use --version,
7659       # but apparently some GNU ld's only accept -v.
7660       # Break only if it was the GNU/non-GNU ld that we prefer.
7661       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7662         test "$with_gnu_ld" != no && break
7663       else
7664         test "$with_gnu_ld" != yes && break
7665       fi
7666     fi
7667   done
7668   IFS="$ac_save_ifs"
7669 else
7670   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7671 fi
7672 fi
7673
7674 LD="$acl_cv_path_LD"
7675 if test -n "$LD"; then
7676   { $as_echo "$as_me:$LINENO: result: $LD" >&5
7677 $as_echo "$LD" >&6; }
7678 else
7679   { $as_echo "$as_me:$LINENO: result: no" >&5
7680 $as_echo "no" >&6; }
7681 fi
7682 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7683 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7684    { (exit 1); exit 1; }; }
7685 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7686 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7687 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7688   $as_echo_n "(cached) " >&6
7689 else
7690   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7691 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7692   acl_cv_prog_gnu_ld=yes
7693 else
7694   acl_cv_prog_gnu_ld=no
7695 fi
7696 fi
7697 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7698 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
7699 with_gnu_ld=$acl_cv_prog_gnu_ld
7700
7701
7702
7703                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7704 $as_echo_n "checking for shared library run path origin... " >&6; }
7705 if test "${acl_cv_rpath+set}" = set; then
7706   $as_echo_n "(cached) " >&6
7707 else
7708
7709     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7710     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7711     . ./conftest.sh
7712     rm -f ./conftest.sh
7713     acl_cv_rpath=done
7714
7715 fi
7716 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7717 $as_echo "$acl_cv_rpath" >&6; }
7718   wl="$acl_cv_wl"
7719   libext="$acl_cv_libext"
7720   shlibext="$acl_cv_shlibext"
7721   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7722   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7723   hardcode_direct="$acl_cv_hardcode_direct"
7724   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7725     # Check whether --enable-rpath was given.
7726 if test "${enable_rpath+set}" = set; then
7727   enableval=$enable_rpath; :
7728 else
7729   enable_rpath=yes
7730 fi
7731
7732
7733
7734
7735
7736
7737
7738
7739     use_additional=yes
7740
7741   acl_save_prefix="$prefix"
7742   prefix="$acl_final_prefix"
7743   acl_save_exec_prefix="$exec_prefix"
7744   exec_prefix="$acl_final_exec_prefix"
7745
7746     eval additional_includedir=\"$includedir\"
7747     eval additional_libdir=\"$libdir\"
7748
7749   exec_prefix="$acl_save_exec_prefix"
7750   prefix="$acl_save_prefix"
7751
7752
7753 # Check whether --with-libiconv-prefix was given.
7754 if test "${with_libiconv_prefix+set}" = set; then
7755   withval=$with_libiconv_prefix;
7756     if test "X$withval" = "Xno"; then
7757       use_additional=no
7758     else
7759       if test "X$withval" = "X"; then
7760
7761   acl_save_prefix="$prefix"
7762   prefix="$acl_final_prefix"
7763   acl_save_exec_prefix="$exec_prefix"
7764   exec_prefix="$acl_final_exec_prefix"
7765
7766           eval additional_includedir=\"$includedir\"
7767           eval additional_libdir=\"$libdir\"
7768
7769   exec_prefix="$acl_save_exec_prefix"
7770   prefix="$acl_save_prefix"
7771
7772       else
7773         additional_includedir="$withval/include"
7774         additional_libdir="$withval/lib"
7775       fi
7776     fi
7777
7778 fi
7779
7780       LIBICONV=
7781   LTLIBICONV=
7782   INCICONV=
7783   rpathdirs=
7784   ltrpathdirs=
7785   names_already_handled=
7786   names_next_round='iconv '
7787   while test -n "$names_next_round"; do
7788     names_this_round="$names_next_round"
7789     names_next_round=
7790     for name in $names_this_round; do
7791       already_handled=
7792       for n in $names_already_handled; do
7793         if test "$n" = "$name"; then
7794           already_handled=yes
7795           break
7796         fi
7797       done
7798       if test -z "$already_handled"; then
7799         names_already_handled="$names_already_handled $name"
7800                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7801         eval value=\"\$HAVE_LIB$uppername\"
7802         if test -n "$value"; then
7803           if test "$value" = yes; then
7804             eval value=\"\$LIB$uppername\"
7805             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7806             eval value=\"\$LTLIB$uppername\"
7807             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7808           else
7809                                     :
7810           fi
7811         else
7812                               found_dir=
7813           found_la=
7814           found_so=
7815           found_a=
7816           if test $use_additional = yes; then
7817             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7818               found_dir="$additional_libdir"
7819               found_so="$additional_libdir/lib$name.$shlibext"
7820               if test -f "$additional_libdir/lib$name.la"; then
7821                 found_la="$additional_libdir/lib$name.la"
7822               fi
7823             else
7824               if test -f "$additional_libdir/lib$name.$libext"; then
7825                 found_dir="$additional_libdir"
7826                 found_a="$additional_libdir/lib$name.$libext"
7827                 if test -f "$additional_libdir/lib$name.la"; then
7828                   found_la="$additional_libdir/lib$name.la"
7829                 fi
7830               fi
7831             fi
7832           fi
7833           if test "X$found_dir" = "X"; then
7834             for x in $LDFLAGS $LTLIBICONV; do
7835
7836   acl_save_prefix="$prefix"
7837   prefix="$acl_final_prefix"
7838   acl_save_exec_prefix="$exec_prefix"
7839   exec_prefix="$acl_final_exec_prefix"
7840   eval x=\"$x\"
7841   exec_prefix="$acl_save_exec_prefix"
7842   prefix="$acl_save_prefix"
7843
7844               case "$x" in
7845                 -L*)
7846                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7847                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7848                     found_dir="$dir"
7849                     found_so="$dir/lib$name.$shlibext"
7850                     if test -f "$dir/lib$name.la"; then
7851                       found_la="$dir/lib$name.la"
7852                     fi
7853                   else
7854                     if test -f "$dir/lib$name.$libext"; then
7855                       found_dir="$dir"
7856                       found_a="$dir/lib$name.$libext"
7857                       if test -f "$dir/lib$name.la"; then
7858                         found_la="$dir/lib$name.la"
7859                       fi
7860                     fi
7861                   fi
7862                   ;;
7863               esac
7864               if test "X$found_dir" != "X"; then
7865                 break
7866               fi
7867             done
7868           fi
7869           if test "X$found_dir" != "X"; then
7870                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7871             if test "X$found_so" != "X"; then
7872                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7873                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7874               else
7875                                                                                 haveit=
7876                 for x in $ltrpathdirs; do
7877                   if test "X$x" = "X$found_dir"; then
7878                     haveit=yes
7879                     break
7880                   fi
7881                 done
7882                 if test -z "$haveit"; then
7883                   ltrpathdirs="$ltrpathdirs $found_dir"
7884                 fi
7885                                 if test "$hardcode_direct" = yes; then
7886                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7887                 else
7888                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7889                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7890                                                             haveit=
7891                     for x in $rpathdirs; do
7892                       if test "X$x" = "X$found_dir"; then
7893                         haveit=yes
7894                         break
7895                       fi
7896                     done
7897                     if test -z "$haveit"; then
7898                       rpathdirs="$rpathdirs $found_dir"
7899                     fi
7900                   else
7901                                                                                 haveit=
7902                     for x in $LDFLAGS $LIBICONV; do
7903
7904   acl_save_prefix="$prefix"
7905   prefix="$acl_final_prefix"
7906   acl_save_exec_prefix="$exec_prefix"
7907   exec_prefix="$acl_final_exec_prefix"
7908   eval x=\"$x\"
7909   exec_prefix="$acl_save_exec_prefix"
7910   prefix="$acl_save_prefix"
7911
7912                       if test "X$x" = "X-L$found_dir"; then
7913                         haveit=yes
7914                         break
7915                       fi
7916                     done
7917                     if test -z "$haveit"; then
7918                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7919                     fi
7920                     if test "$hardcode_minus_L" != no; then
7921                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7922                     else
7923                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7924                     fi
7925                   fi
7926                 fi
7927               fi
7928             else
7929               if test "X$found_a" != "X"; then
7930                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7931               else
7932                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7933               fi
7934             fi
7935                         additional_includedir=
7936             case "$found_dir" in
7937               */lib | */lib/)
7938                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7939                 additional_includedir="$basedir/include"
7940                 ;;
7941             esac
7942             if test "X$additional_includedir" != "X"; then
7943                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7944                 haveit=
7945                 if test "X$additional_includedir" = "X/usr/local/include"; then
7946                   if test -n "$GCC"; then
7947                     case $host_os in
7948                       linux*) haveit=yes;;
7949                     esac
7950                   fi
7951                 fi
7952                 if test -z "$haveit"; then
7953                   for x in $CPPFLAGS $INCICONV; do
7954
7955   acl_save_prefix="$prefix"
7956   prefix="$acl_final_prefix"
7957   acl_save_exec_prefix="$exec_prefix"
7958   exec_prefix="$acl_final_exec_prefix"
7959   eval x=\"$x\"
7960   exec_prefix="$acl_save_exec_prefix"
7961   prefix="$acl_save_prefix"
7962
7963                     if test "X$x" = "X-I$additional_includedir"; then
7964                       haveit=yes
7965                       break
7966                     fi
7967                   done
7968                   if test -z "$haveit"; then
7969                     if test -d "$additional_includedir"; then
7970                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7971                     fi
7972                   fi
7973                 fi
7974               fi
7975             fi
7976                         if test -n "$found_la"; then
7977                                                         save_libdir="$libdir"
7978               case "$found_la" in
7979                 */* | *\\*) . "$found_la" ;;
7980                 *) . "./$found_la" ;;
7981               esac
7982               libdir="$save_libdir"
7983                             for dep in $dependency_libs; do
7984                 case "$dep" in
7985                   -L*)
7986                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7987                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7988                       haveit=
7989                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7990                         if test -n "$GCC"; then
7991                           case $host_os in
7992                             linux*) haveit=yes;;
7993                           esac
7994                         fi
7995                       fi
7996                       if test -z "$haveit"; then
7997                         haveit=
7998                         for x in $LDFLAGS $LIBICONV; do
7999
8000   acl_save_prefix="$prefix"
8001   prefix="$acl_final_prefix"
8002   acl_save_exec_prefix="$exec_prefix"
8003   exec_prefix="$acl_final_exec_prefix"
8004   eval x=\"$x\"
8005   exec_prefix="$acl_save_exec_prefix"
8006   prefix="$acl_save_prefix"
8007
8008                           if test "X$x" = "X-L$additional_libdir"; then
8009                             haveit=yes
8010                             break
8011                           fi
8012                         done
8013                         if test -z "$haveit"; then
8014                           if test -d "$additional_libdir"; then
8015                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8016                           fi
8017                         fi
8018                         haveit=
8019                         for x in $LDFLAGS $LTLIBICONV; do
8020
8021   acl_save_prefix="$prefix"
8022   prefix="$acl_final_prefix"
8023   acl_save_exec_prefix="$exec_prefix"
8024   exec_prefix="$acl_final_exec_prefix"
8025   eval x=\"$x\"
8026   exec_prefix="$acl_save_exec_prefix"
8027   prefix="$acl_save_prefix"
8028
8029                           if test "X$x" = "X-L$additional_libdir"; then
8030                             haveit=yes
8031                             break
8032                           fi
8033                         done
8034                         if test -z "$haveit"; then
8035                           if test -d "$additional_libdir"; then
8036                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8037                           fi
8038                         fi
8039                       fi
8040                     fi
8041                     ;;
8042                   -R*)
8043                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8044                     if test "$enable_rpath" != no; then
8045                                                                   haveit=
8046                       for x in $rpathdirs; do
8047                         if test "X$x" = "X$dir"; then
8048                           haveit=yes
8049                           break
8050                         fi
8051                       done
8052                       if test -z "$haveit"; then
8053                         rpathdirs="$rpathdirs $dir"
8054                       fi
8055                                                                   haveit=
8056                       for x in $ltrpathdirs; do
8057                         if test "X$x" = "X$dir"; then
8058                           haveit=yes
8059                           break
8060                         fi
8061                       done
8062                       if test -z "$haveit"; then
8063                         ltrpathdirs="$ltrpathdirs $dir"
8064                       fi
8065                     fi
8066                     ;;
8067                   -l*)
8068                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8069                     ;;
8070                   *.la)
8071                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8072                     ;;
8073                   *)
8074                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8075                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8076                     ;;
8077                 esac
8078               done
8079             fi
8080           else
8081                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8082             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8083           fi
8084         fi
8085       fi
8086     done
8087   done
8088   if test "X$rpathdirs" != "X"; then
8089     if test -n "$hardcode_libdir_separator"; then
8090                         alldirs=
8091       for found_dir in $rpathdirs; do
8092         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8093       done
8094             acl_save_libdir="$libdir"
8095       libdir="$alldirs"
8096       eval flag=\"$hardcode_libdir_flag_spec\"
8097       libdir="$acl_save_libdir"
8098       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8099     else
8100             for found_dir in $rpathdirs; do
8101         acl_save_libdir="$libdir"
8102         libdir="$found_dir"
8103         eval flag=\"$hardcode_libdir_flag_spec\"
8104         libdir="$acl_save_libdir"
8105         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8106       done
8107     fi
8108   fi
8109   if test "X$ltrpathdirs" != "X"; then
8110             for found_dir in $ltrpathdirs; do
8111       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8112     done
8113   fi
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8133 $as_echo_n "checking whether NLS is requested... " >&6; }
8134     # Check whether --enable-nls was given.
8135 if test "${enable_nls+set}" = set; then
8136   enableval=$enable_nls; USE_NLS=$enableval
8137 else
8138   USE_NLS=yes
8139 fi
8140
8141   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
8142 $as_echo "$USE_NLS" >&6; }
8143
8144
8145
8146
8147   LIBINTL=
8148   LTLIBINTL=
8149   POSUB=
8150
8151     if test "$USE_NLS" = "yes"; then
8152     gt_use_preinstalled_gnugettext=no
8153
8154
8155
8156
8157
8158
8159         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8160 $as_echo_n "checking for GNU gettext in libc... " >&6; }
8161 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
8162   $as_echo_n "(cached) " >&6
8163 else
8164   cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h.  */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h.  */
8170 #include <libintl.h>
8171 extern int _nl_msg_cat_cntr;
8172 extern int *_nl_domain_bindings;
8173 int
8174 main ()
8175 {
8176 bindtextdomain ("", "");
8177 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
8178   ;
8179   return 0;
8180 }
8181 _ACEOF
8182 rm -f conftest.$ac_objext conftest$ac_exeext
8183 if { (ac_try="$ac_link"
8184 case "(($ac_try" in
8185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8186   *) ac_try_echo=$ac_try;;
8187 esac
8188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8189 $as_echo "$ac_try_echo") >&5
8190   (eval "$ac_link") 2>conftest.er1
8191   ac_status=$?
8192   grep -v '^ *+' conftest.er1 >conftest.err
8193   rm -f conftest.er1
8194   cat conftest.err >&5
8195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); } && {
8197          test -z "$ac_c_werror_flag" ||
8198          test ! -s conftest.err
8199        } && test -s conftest$ac_exeext && {
8200          test "$cross_compiling" = yes ||
8201          $as_test_x conftest$ac_exeext
8202        }; then
8203   gt_cv_func_gnugettext1_libc=yes
8204 else
8205   $as_echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8207
8208         gt_cv_func_gnugettext1_libc=no
8209 fi
8210
8211 rm -rf conftest.dSYM
8212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8213       conftest$ac_exeext conftest.$ac_ext
8214 fi
8215 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
8216 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
8217
8218         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
8219
8220
8221
8222
8223
8224           am_save_CPPFLAGS="$CPPFLAGS"
8225
8226   for element in $INCICONV; do
8227     haveit=
8228     for x in $CPPFLAGS; do
8229
8230   acl_save_prefix="$prefix"
8231   prefix="$acl_final_prefix"
8232   acl_save_exec_prefix="$exec_prefix"
8233   exec_prefix="$acl_final_exec_prefix"
8234   eval x=\"$x\"
8235   exec_prefix="$acl_save_exec_prefix"
8236   prefix="$acl_save_prefix"
8237
8238       if test "X$x" = "X$element"; then
8239         haveit=yes
8240         break
8241       fi
8242     done
8243     if test -z "$haveit"; then
8244       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8245     fi
8246   done
8247
8248
8249   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
8250 $as_echo_n "checking for iconv... " >&6; }
8251 if test "${am_cv_func_iconv+set}" = set; then
8252   $as_echo_n "(cached) " >&6
8253 else
8254
8255     am_cv_func_iconv="no, consider installing GNU libiconv"
8256     am_cv_lib_iconv=no
8257     cat >conftest.$ac_ext <<_ACEOF
8258 /* confdefs.h.  */
8259 _ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h.  */
8263 #include <stdlib.h>
8264 #include <iconv.h>
8265 int
8266 main ()
8267 {
8268 iconv_t cd = iconv_open("","");
8269        iconv(cd,NULL,NULL,NULL,NULL);
8270        iconv_close(cd);
8271   ;
8272   return 0;
8273 }
8274 _ACEOF
8275 rm -f conftest.$ac_objext conftest$ac_exeext
8276 if { (ac_try="$ac_link"
8277 case "(($ac_try" in
8278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279   *) ac_try_echo=$ac_try;;
8280 esac
8281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8282 $as_echo "$ac_try_echo") >&5
8283   (eval "$ac_link") 2>conftest.er1
8284   ac_status=$?
8285   grep -v '^ *+' conftest.er1 >conftest.err
8286   rm -f conftest.er1
8287   cat conftest.err >&5
8288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289   (exit $ac_status); } && {
8290          test -z "$ac_c_werror_flag" ||
8291          test ! -s conftest.err
8292        } && test -s conftest$ac_exeext && {
8293          test "$cross_compiling" = yes ||
8294          $as_test_x conftest$ac_exeext
8295        }; then
8296   am_cv_func_iconv=yes
8297 else
8298   $as_echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8300
8301
8302 fi
8303
8304 rm -rf conftest.dSYM
8305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8306       conftest$ac_exeext conftest.$ac_ext
8307     if test "$am_cv_func_iconv" != yes; then
8308       am_save_LIBS="$LIBS"
8309       LIBS="$LIBS $LIBICONV"
8310       cat >conftest.$ac_ext <<_ACEOF
8311 /* confdefs.h.  */
8312 _ACEOF
8313 cat confdefs.h >>conftest.$ac_ext
8314 cat >>conftest.$ac_ext <<_ACEOF
8315 /* end confdefs.h.  */
8316 #include <stdlib.h>
8317 #include <iconv.h>
8318 int
8319 main ()
8320 {
8321 iconv_t cd = iconv_open("","");
8322          iconv(cd,NULL,NULL,NULL,NULL);
8323          iconv_close(cd);
8324   ;
8325   return 0;
8326 }
8327 _ACEOF
8328 rm -f conftest.$ac_objext conftest$ac_exeext
8329 if { (ac_try="$ac_link"
8330 case "(($ac_try" in
8331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8332   *) ac_try_echo=$ac_try;;
8333 esac
8334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8335 $as_echo "$ac_try_echo") >&5
8336   (eval "$ac_link") 2>conftest.er1
8337   ac_status=$?
8338   grep -v '^ *+' conftest.er1 >conftest.err
8339   rm -f conftest.er1
8340   cat conftest.err >&5
8341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342   (exit $ac_status); } && {
8343          test -z "$ac_c_werror_flag" ||
8344          test ! -s conftest.err
8345        } && test -s conftest$ac_exeext && {
8346          test "$cross_compiling" = yes ||
8347          $as_test_x conftest$ac_exeext
8348        }; then
8349   am_cv_lib_iconv=yes
8350         am_cv_func_iconv=yes
8351 else
8352   $as_echo "$as_me: failed program was:" >&5
8353 sed 's/^/| /' conftest.$ac_ext >&5
8354
8355
8356 fi
8357
8358 rm -rf conftest.dSYM
8359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8360       conftest$ac_exeext conftest.$ac_ext
8361       LIBS="$am_save_LIBS"
8362     fi
8363
8364 fi
8365 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8366 $as_echo "$am_cv_func_iconv" >&6; }
8367   if test "$am_cv_func_iconv" = yes; then
8368
8369 cat >>confdefs.h <<\_ACEOF
8370 #define HAVE_ICONV 1
8371 _ACEOF
8372
8373   fi
8374   if test "$am_cv_lib_iconv" = yes; then
8375     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8376 $as_echo_n "checking how to link with libiconv... " >&6; }
8377     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
8378 $as_echo "$LIBICONV" >&6; }
8379   else
8380             CPPFLAGS="$am_save_CPPFLAGS"
8381     LIBICONV=
8382     LTLIBICONV=
8383   fi
8384
8385
8386
8387
8388
8389
8390     use_additional=yes
8391
8392   acl_save_prefix="$prefix"
8393   prefix="$acl_final_prefix"
8394   acl_save_exec_prefix="$exec_prefix"
8395   exec_prefix="$acl_final_exec_prefix"
8396
8397     eval additional_includedir=\"$includedir\"
8398     eval additional_libdir=\"$libdir\"
8399
8400   exec_prefix="$acl_save_exec_prefix"
8401   prefix="$acl_save_prefix"
8402
8403
8404 # Check whether --with-libintl-prefix was given.
8405 if test "${with_libintl_prefix+set}" = set; then
8406   withval=$with_libintl_prefix;
8407     if test "X$withval" = "Xno"; then
8408       use_additional=no
8409     else
8410       if test "X$withval" = "X"; then
8411
8412   acl_save_prefix="$prefix"
8413   prefix="$acl_final_prefix"
8414   acl_save_exec_prefix="$exec_prefix"
8415   exec_prefix="$acl_final_exec_prefix"
8416
8417           eval additional_includedir=\"$includedir\"
8418           eval additional_libdir=\"$libdir\"
8419
8420   exec_prefix="$acl_save_exec_prefix"
8421   prefix="$acl_save_prefix"
8422
8423       else
8424         additional_includedir="$withval/include"
8425         additional_libdir="$withval/lib"
8426       fi
8427     fi
8428
8429 fi
8430
8431       LIBINTL=
8432   LTLIBINTL=
8433   INCINTL=
8434   rpathdirs=
8435   ltrpathdirs=
8436   names_already_handled=
8437   names_next_round='intl '
8438   while test -n "$names_next_round"; do
8439     names_this_round="$names_next_round"
8440     names_next_round=
8441     for name in $names_this_round; do
8442       already_handled=
8443       for n in $names_already_handled; do
8444         if test "$n" = "$name"; then
8445           already_handled=yes
8446           break
8447         fi
8448       done
8449       if test -z "$already_handled"; then
8450         names_already_handled="$names_already_handled $name"
8451                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8452         eval value=\"\$HAVE_LIB$uppername\"
8453         if test -n "$value"; then
8454           if test "$value" = yes; then
8455             eval value=\"\$LIB$uppername\"
8456             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8457             eval value=\"\$LTLIB$uppername\"
8458             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8459           else
8460                                     :
8461           fi
8462         else
8463                               found_dir=
8464           found_la=
8465           found_so=
8466           found_a=
8467           if test $use_additional = yes; then
8468             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8469               found_dir="$additional_libdir"
8470               found_so="$additional_libdir/lib$name.$shlibext"
8471               if test -f "$additional_libdir/lib$name.la"; then
8472                 found_la="$additional_libdir/lib$name.la"
8473               fi
8474             else
8475               if test -f "$additional_libdir/lib$name.$libext"; then
8476                 found_dir="$additional_libdir"
8477                 found_a="$additional_libdir/lib$name.$libext"
8478                 if test -f "$additional_libdir/lib$name.la"; then
8479                   found_la="$additional_libdir/lib$name.la"
8480                 fi
8481               fi
8482             fi
8483           fi
8484           if test "X$found_dir" = "X"; then
8485             for x in $LDFLAGS $LTLIBINTL; do
8486
8487   acl_save_prefix="$prefix"
8488   prefix="$acl_final_prefix"
8489   acl_save_exec_prefix="$exec_prefix"
8490   exec_prefix="$acl_final_exec_prefix"
8491   eval x=\"$x\"
8492   exec_prefix="$acl_save_exec_prefix"
8493   prefix="$acl_save_prefix"
8494
8495               case "$x" in
8496                 -L*)
8497                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8498                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8499                     found_dir="$dir"
8500                     found_so="$dir/lib$name.$shlibext"
8501                     if test -f "$dir/lib$name.la"; then
8502                       found_la="$dir/lib$name.la"
8503                     fi
8504                   else
8505                     if test -f "$dir/lib$name.$libext"; then
8506                       found_dir="$dir"
8507                       found_a="$dir/lib$name.$libext"
8508                       if test -f "$dir/lib$name.la"; then
8509                         found_la="$dir/lib$name.la"
8510                       fi
8511                     fi
8512                   fi
8513                   ;;
8514               esac
8515               if test "X$found_dir" != "X"; then
8516                 break
8517               fi
8518             done
8519           fi
8520           if test "X$found_dir" != "X"; then
8521                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8522             if test "X$found_so" != "X"; then
8523                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8524                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8525               else
8526                                                                                 haveit=
8527                 for x in $ltrpathdirs; do
8528                   if test "X$x" = "X$found_dir"; then
8529                     haveit=yes
8530                     break
8531                   fi
8532                 done
8533                 if test -z "$haveit"; then
8534                   ltrpathdirs="$ltrpathdirs $found_dir"
8535                 fi
8536                                 if test "$hardcode_direct" = yes; then
8537                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8538                 else
8539                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8540                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8541                                                             haveit=
8542                     for x in $rpathdirs; do
8543                       if test "X$x" = "X$found_dir"; then
8544                         haveit=yes
8545                         break
8546                       fi
8547                     done
8548                     if test -z "$haveit"; then
8549                       rpathdirs="$rpathdirs $found_dir"
8550                     fi
8551                   else
8552                                                                                 haveit=
8553                     for x in $LDFLAGS $LIBINTL; do
8554
8555   acl_save_prefix="$prefix"
8556   prefix="$acl_final_prefix"
8557   acl_save_exec_prefix="$exec_prefix"
8558   exec_prefix="$acl_final_exec_prefix"
8559   eval x=\"$x\"
8560   exec_prefix="$acl_save_exec_prefix"
8561   prefix="$acl_save_prefix"
8562
8563                       if test "X$x" = "X-L$found_dir"; then
8564                         haveit=yes
8565                         break
8566                       fi
8567                     done
8568                     if test -z "$haveit"; then
8569                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8570                     fi
8571                     if test "$hardcode_minus_L" != no; then
8572                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8573                     else
8574                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8575                     fi
8576                   fi
8577                 fi
8578               fi
8579             else
8580               if test "X$found_a" != "X"; then
8581                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8582               else
8583                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8584               fi
8585             fi
8586                         additional_includedir=
8587             case "$found_dir" in
8588               */lib | */lib/)
8589                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8590                 additional_includedir="$basedir/include"
8591                 ;;
8592             esac
8593             if test "X$additional_includedir" != "X"; then
8594                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8595                 haveit=
8596                 if test "X$additional_includedir" = "X/usr/local/include"; then
8597                   if test -n "$GCC"; then
8598                     case $host_os in
8599                       linux*) haveit=yes;;
8600                     esac
8601                   fi
8602                 fi
8603                 if test -z "$haveit"; then
8604                   for x in $CPPFLAGS $INCINTL; do
8605
8606   acl_save_prefix="$prefix"
8607   prefix="$acl_final_prefix"
8608   acl_save_exec_prefix="$exec_prefix"
8609   exec_prefix="$acl_final_exec_prefix"
8610   eval x=\"$x\"
8611   exec_prefix="$acl_save_exec_prefix"
8612   prefix="$acl_save_prefix"
8613
8614                     if test "X$x" = "X-I$additional_includedir"; then
8615                       haveit=yes
8616                       break
8617                     fi
8618                   done
8619                   if test -z "$haveit"; then
8620                     if test -d "$additional_includedir"; then
8621                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8622                     fi
8623                   fi
8624                 fi
8625               fi
8626             fi
8627                         if test -n "$found_la"; then
8628                                                         save_libdir="$libdir"
8629               case "$found_la" in
8630                 */* | *\\*) . "$found_la" ;;
8631                 *) . "./$found_la" ;;
8632               esac
8633               libdir="$save_libdir"
8634                             for dep in $dependency_libs; do
8635                 case "$dep" in
8636                   -L*)
8637                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8638                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
8639                       haveit=
8640                       if test "X$additional_libdir" = "X/usr/local/lib"; then
8641                         if test -n "$GCC"; then
8642                           case $host_os in
8643                             linux*) haveit=yes;;
8644                           esac
8645                         fi
8646                       fi
8647                       if test -z "$haveit"; then
8648                         haveit=
8649                         for x in $LDFLAGS $LIBINTL; do
8650
8651   acl_save_prefix="$prefix"
8652   prefix="$acl_final_prefix"
8653   acl_save_exec_prefix="$exec_prefix"
8654   exec_prefix="$acl_final_exec_prefix"
8655   eval x=\"$x\"
8656   exec_prefix="$acl_save_exec_prefix"
8657   prefix="$acl_save_prefix"
8658
8659                           if test "X$x" = "X-L$additional_libdir"; then
8660                             haveit=yes
8661                             break
8662                           fi
8663                         done
8664                         if test -z "$haveit"; then
8665                           if test -d "$additional_libdir"; then
8666                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8667                           fi
8668                         fi
8669                         haveit=
8670                         for x in $LDFLAGS $LTLIBINTL; do
8671
8672   acl_save_prefix="$prefix"
8673   prefix="$acl_final_prefix"
8674   acl_save_exec_prefix="$exec_prefix"
8675   exec_prefix="$acl_final_exec_prefix"
8676   eval x=\"$x\"
8677   exec_prefix="$acl_save_exec_prefix"
8678   prefix="$acl_save_prefix"
8679
8680                           if test "X$x" = "X-L$additional_libdir"; then
8681                             haveit=yes
8682                             break
8683                           fi
8684                         done
8685                         if test -z "$haveit"; then
8686                           if test -d "$additional_libdir"; then
8687                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8688                           fi
8689                         fi
8690                       fi
8691                     fi
8692                     ;;
8693                   -R*)
8694                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8695                     if test "$enable_rpath" != no; then
8696                                                                   haveit=
8697                       for x in $rpathdirs; do
8698                         if test "X$x" = "X$dir"; then
8699                           haveit=yes
8700                           break
8701                         fi
8702                       done
8703                       if test -z "$haveit"; then
8704                         rpathdirs="$rpathdirs $dir"
8705                       fi
8706                                                                   haveit=
8707                       for x in $ltrpathdirs; do
8708                         if test "X$x" = "X$dir"; then
8709                           haveit=yes
8710                           break
8711                         fi
8712                       done
8713                       if test -z "$haveit"; then
8714                         ltrpathdirs="$ltrpathdirs $dir"
8715                       fi
8716                     fi
8717                     ;;
8718                   -l*)
8719                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8720                     ;;
8721                   *.la)
8722                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8723                     ;;
8724                   *)
8725                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8726                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8727                     ;;
8728                 esac
8729               done
8730             fi
8731           else
8732                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8733             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8734           fi
8735         fi
8736       fi
8737     done
8738   done
8739   if test "X$rpathdirs" != "X"; then
8740     if test -n "$hardcode_libdir_separator"; then
8741                         alldirs=
8742       for found_dir in $rpathdirs; do
8743         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8744       done
8745             acl_save_libdir="$libdir"
8746       libdir="$alldirs"
8747       eval flag=\"$hardcode_libdir_flag_spec\"
8748       libdir="$acl_save_libdir"
8749       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8750     else
8751             for found_dir in $rpathdirs; do
8752         acl_save_libdir="$libdir"
8753         libdir="$found_dir"
8754         eval flag=\"$hardcode_libdir_flag_spec\"
8755         libdir="$acl_save_libdir"
8756         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8757       done
8758     fi
8759   fi
8760   if test "X$ltrpathdirs" != "X"; then
8761             for found_dir in $ltrpathdirs; do
8762       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8763     done
8764   fi
8765
8766           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8767 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
8768 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
8769   $as_echo_n "(cached) " >&6
8770 else
8771   gt_save_CPPFLAGS="$CPPFLAGS"
8772             CPPFLAGS="$CPPFLAGS $INCINTL"
8773             gt_save_LIBS="$LIBS"
8774             LIBS="$LIBS $LIBINTL"
8775                         cat >conftest.$ac_ext <<_ACEOF
8776 /* confdefs.h.  */
8777 _ACEOF
8778 cat confdefs.h >>conftest.$ac_ext
8779 cat >>conftest.$ac_ext <<_ACEOF
8780 /* end confdefs.h.  */
8781 #include <libintl.h>
8782 extern int _nl_msg_cat_cntr;
8783 extern
8784 #ifdef __cplusplus
8785 "C"
8786 #endif
8787 const char *_nl_expand_alias ();
8788 int
8789 main ()
8790 {
8791 bindtextdomain ("", "");
8792 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8793   ;
8794   return 0;
8795 }
8796 _ACEOF
8797 rm -f conftest.$ac_objext conftest$ac_exeext
8798 if { (ac_try="$ac_link"
8799 case "(($ac_try" in
8800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801   *) ac_try_echo=$ac_try;;
8802 esac
8803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8804 $as_echo "$ac_try_echo") >&5
8805   (eval "$ac_link") 2>conftest.er1
8806   ac_status=$?
8807   grep -v '^ *+' conftest.er1 >conftest.err
8808   rm -f conftest.er1
8809   cat conftest.err >&5
8810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811   (exit $ac_status); } && {
8812          test -z "$ac_c_werror_flag" ||
8813          test ! -s conftest.err
8814        } && test -s conftest$ac_exeext && {
8815          test "$cross_compiling" = yes ||
8816          $as_test_x conftest$ac_exeext
8817        }; then
8818   gt_cv_func_gnugettext1_libintl=yes
8819 else
8820   $as_echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8822
8823         gt_cv_func_gnugettext1_libintl=no
8824 fi
8825
8826 rm -rf conftest.dSYM
8827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8828       conftest$ac_exeext conftest.$ac_ext
8829                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
8830               LIBS="$LIBS $LIBICONV"
8831               cat >conftest.$ac_ext <<_ACEOF
8832 /* confdefs.h.  */
8833 _ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h.  */
8837 #include <libintl.h>
8838 extern int _nl_msg_cat_cntr;
8839 extern
8840 #ifdef __cplusplus
8841 "C"
8842 #endif
8843 const char *_nl_expand_alias ();
8844 int
8845 main ()
8846 {
8847 bindtextdomain ("", "");
8848 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
8849   ;
8850   return 0;
8851 }
8852 _ACEOF
8853 rm -f conftest.$ac_objext conftest$ac_exeext
8854 if { (ac_try="$ac_link"
8855 case "(($ac_try" in
8856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857   *) ac_try_echo=$ac_try;;
8858 esac
8859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8860 $as_echo "$ac_try_echo") >&5
8861   (eval "$ac_link") 2>conftest.er1
8862   ac_status=$?
8863   grep -v '^ *+' conftest.er1 >conftest.err
8864   rm -f conftest.er1
8865   cat conftest.err >&5
8866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867   (exit $ac_status); } && {
8868          test -z "$ac_c_werror_flag" ||
8869          test ! -s conftest.err
8870        } && test -s conftest$ac_exeext && {
8871          test "$cross_compiling" = yes ||
8872          $as_test_x conftest$ac_exeext
8873        }; then
8874   LIBINTL="$LIBINTL $LIBICONV"
8875                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8876                 gt_cv_func_gnugettext1_libintl=yes
8877
8878 else
8879   $as_echo "$as_me: failed program was:" >&5
8880 sed 's/^/| /' conftest.$ac_ext >&5
8881
8882
8883 fi
8884
8885 rm -rf conftest.dSYM
8886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8887       conftest$ac_exeext conftest.$ac_ext
8888             fi
8889             CPPFLAGS="$gt_save_CPPFLAGS"
8890             LIBS="$gt_save_LIBS"
8891 fi
8892 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
8893 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
8894         fi
8895
8896                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
8897            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
8898                 && test "$PACKAGE" != gettext-runtime \
8899                 && test "$PACKAGE" != gettext-tools; }; then
8900           gt_use_preinstalled_gnugettext=yes
8901         else
8902                     LIBINTL=
8903           LTLIBINTL=
8904           INCINTL=
8905         fi
8906
8907
8908
8909     if test "$gt_use_preinstalled_gnugettext" = "yes" \
8910        || test "$nls_cv_use_gnu_gettext" = "yes"; then
8911
8912 cat >>confdefs.h <<\_ACEOF
8913 #define ENABLE_NLS 1
8914 _ACEOF
8915
8916     else
8917       USE_NLS=no
8918     fi
8919   fi
8920
8921   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
8922 $as_echo_n "checking whether to use NLS... " >&6; }
8923   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
8924 $as_echo "$USE_NLS" >&6; }
8925   if test "$USE_NLS" = "yes"; then
8926     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
8927 $as_echo_n "checking where the gettext function comes from... " >&6; }
8928     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8929       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8930         gt_source="external libintl"
8931       else
8932         gt_source="libc"
8933       fi
8934     else
8935       gt_source="included intl directory"
8936     fi
8937     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
8938 $as_echo "$gt_source" >&6; }
8939   fi
8940
8941   if test "$USE_NLS" = "yes"; then
8942
8943     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8944       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
8945         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
8946 $as_echo_n "checking how to link with libintl... " >&6; }
8947         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
8948 $as_echo "$LIBINTL" >&6; }
8949
8950   for element in $INCINTL; do
8951     haveit=
8952     for x in $CPPFLAGS; do
8953
8954   acl_save_prefix="$prefix"
8955   prefix="$acl_final_prefix"
8956   acl_save_exec_prefix="$exec_prefix"
8957   exec_prefix="$acl_final_exec_prefix"
8958   eval x=\"$x\"
8959   exec_prefix="$acl_save_exec_prefix"
8960   prefix="$acl_save_prefix"
8961
8962       if test "X$x" = "X$element"; then
8963         haveit=yes
8964         break
8965       fi
8966     done
8967     if test -z "$haveit"; then
8968       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8969     fi
8970   done
8971
8972       fi
8973
8974
8975 cat >>confdefs.h <<\_ACEOF
8976 #define HAVE_GETTEXT 1
8977 _ACEOF
8978
8979
8980 cat >>confdefs.h <<\_ACEOF
8981 #define HAVE_DCGETTEXT 1
8982 _ACEOF
8983
8984     fi
8985
8986         POSUB=po
8987   fi
8988
8989
8990
8991     INTLLIBS="$LIBINTL"
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001 USE_PTYS=0
9002 case "$host" in
9003   *-*-hpux* )
9004     cat >>confdefs.h <<\_ACEOF
9005 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/pty/tty%c%x", c, i);
9006 _ACEOF
9007
9008     cat >>confdefs.h <<\_ACEOF
9009 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/ptym/pty%c%x", c, i);
9010 _ACEOF
9011
9012     if test "$GCC" = yes; then
9013       CONF_CFLAGS="-fwritable-strings"
9014     else
9015
9016
9017       CONF_CFLAGS="-Aa -D_HPUX_SOURCE"
9018     fi
9019
9020
9021     if test -d /opt/hppd/include/X11; then
9022       X_CFLAGS="$X_CFLAGS -I/opt/hppd/include"
9023       X_LIBS="$X_LIBS -L/opt/hppd/lib"
9024     elif test -d /usr/contrib/X11R5/include; then
9025       X_CFLAGS="$X_CFLAGS -I/usr/contrib/X11R5/include"
9026       X_LIBS="$X_LIBS -L/usr/contrib/X11R5/lib"
9027     elif test -d /usr/contrib/mitX11R5/include; then
9028       X_CFLAGS="$X_CFLAGS -I/usr/contrib/mitX11R5/include"
9029       X_LIBS="$X_LIBS -L/usr/contrib/mitX11R5/lib"
9030     elif test -d /MIT/X11R5/include; then
9031       X_CFLAGS="$X_CFLAGS -I/MIT/X11R5/include"
9032       X_LIBS="$X_LIBS -L/MIT/X11R5/lib"
9033     elif test -d /usr/local/include/X11R5; then
9034       X_CFLAGS="$X_CFLAGS -I/usr/local/include/X11R5"
9035       X_LIBS="$X_LIBS -L/usr/local/lib/X11R5"
9036     fi
9037     if test -d /usr/include/X11R5; then
9038       X_CFLAGS="$X_CFLAGS -I/usr/include/X11R5"
9039       X_LIBS="$X_LIBS -L/usr/lib/X11R5 -L/usr/lib/X11R4"
9040     elif test -d /usr/include/X11R4; then
9041       X_CFLAGS="$X_CFLAGS -I/usr/include/X11R4"
9042       X_LIBS="$X_LIBS -L/usr/lib/X11R4"
9043     fi
9044   ;;
9045
9046   romp-ibm-aix* )
9047     cat >>confdefs.h <<\_ACEOF
9048 #define IBMRTAIX 1
9049 _ACEOF
9050
9051   ;;
9052
9053   i386-ibm-aix )
9054     if test "$GCC" = yes; then
9055       CONF_CFLAGS="-fwritable-strings"
9056     fi
9057   ;;
9058
9059   *-*-aix3* | *-*-bosx* )
9060     cat >>confdefs.h <<\_ACEOF
9061 #define PTY_ITERATION for (c = 0; !c; c++)
9062 _ACEOF
9063
9064     cat >>confdefs.h <<\_ACEOF
9065 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
9066 _ACEOF
9067
9068     cat >>confdefs.h <<\_ACEOF
9069 #define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));
9070 _ACEOF
9071
9072   ;;
9073
9074   *-*-cxux* )
9075     cat >>confdefs.h <<\_ACEOF
9076 #define FIRST_PTY_LETTER 'A'
9077 _ACEOF
9078
9079     cat >>confdefs.h <<\_ACEOF
9080 #define LAST_PTY_LETTER 'P'
9081 _ACEOF
9082
9083   ;;
9084
9085   *-*-uniplus* )
9086     cat >>confdefs.h <<\_ACEOF
9087 #define UNIPLUS 1
9088 _ACEOF
9089
9090   ;;
9091
9092   *-*-rtu* )
9093     cat >>confdefs.h <<\_ACEOF
9094 #define FIRST_PTY_LETTER 'z'
9095 _ACEOF
9096
9097     cat >>confdefs.h <<\_ACEOF
9098 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyp%x", i);
9099 _ACEOF
9100
9101     cat >>confdefs.h <<\_ACEOF
9102 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/pty%x", i);
9103 _ACEOF
9104
9105     cat >>confdefs.h <<\_ACEOF
9106 #define RTU 1
9107 _ACEOF
9108
9109   ;;
9110
9111   *-*-iris* | *-*-irix3* )
9112     cat >>confdefs.h <<\_ACEOF
9113 #define PTY_ITERATION for (c = 0; !c; c++)
9114 _ACEOF
9115
9116     cat >>confdefs.h <<\_ACEOF
9117 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
9118 _ACEOF
9119
9120     cat >>confdefs.h <<\_ACEOF
9121 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyq%d", minor(stb.st_rdev));
9122 _ACEOF
9123
9124   ;;
9125
9126   *-*-irix* )
9127   ;;
9128
9129   *-*-sunos4* | *-*-solaris1* )
9130
9131
9132     if test "$GCC" = yes; then
9133       PRE_XMULIB="-static"
9134       POST_XMULIB="-dynamic"
9135     else
9136       PRE_XMULIB="-Bstatic"
9137       POST_XMULIB="-Bdynamic"
9138     fi
9139   ;;
9140
9141   *-*-sunos5* | *-*-solaris2* )
9142
9143
9144     X_LIBS="$X_LIBS -lelf"
9145   ;;
9146
9147   *-*-sco* )
9148     cat >>confdefs.h <<\_ACEOF
9149 #define PTY_ITERATION for (i = 0; ; i++)
9150 _ACEOF
9151
9152     cat >>confdefs.h <<\_ACEOF
9153 #define PTY_NAME_SPRINTF sprintf (pty_name, "/dev/ptyp%d", i);
9154 _ACEOF
9155
9156     cat >>confdefs.h <<\_ACEOF
9157 #define PTY_TTY_NAME_SPRINTF sprintf (pty_name, "/dev/ttyp%d", i);
9158 _ACEOF
9159
9160   ;;
9161
9162   *-*-dynix* | *-*-ptx* )
9163   ;;
9164
9165   *-*-esix* )
9166   ;;
9167
9168   *-*-usg5-4* | *-*-sysvr4* )
9169   ;;
9170
9171   *-*-usg* | *-*-sysv* | *-*-aix* )
9172   ;;
9173
9174   vax-*-ultrix )
9175     if test "$GCC" = yes; then
9176       CONF_CFLAGS="-fwritable-strings"
9177     fi
9178   ;;
9179 esac
9180
9181 # Check whether --enable-xpm was given.
9182 if test "${enable_xpm+set}" = set; then
9183   enableval=$enable_xpm; enable_xpm="$enableval"
9184 else
9185   enable_xpm="yes"
9186 fi
9187
9188
9189 if test "$enable_xpm" = "yes"; then
9190   save_cflags="$CFLAGS"
9191   CFLAGS="$CFLAGS $X_CFLAGS"
9192   CPPFLAGS="$CPPFLAGS $X_CFLAGS"
9193
9194 for ac_header in X11/xpm.h
9195 do
9196 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9198   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9199 $as_echo_n "checking for $ac_header... " >&6; }
9200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9201   $as_echo_n "(cached) " >&6
9202 fi
9203 ac_res=`eval 'as_val=${'$as_ac_Header'}
9204                  $as_echo "$as_val"'`
9205                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9206 $as_echo "$ac_res" >&6; }
9207 else
9208   # Is the header compilable?
9209 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9210 $as_echo_n "checking $ac_header usability... " >&6; }
9211 cat >conftest.$ac_ext <<_ACEOF
9212 /* confdefs.h.  */
9213 _ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h.  */
9217 $ac_includes_default
9218 #include <$ac_header>
9219 _ACEOF
9220 rm -f conftest.$ac_objext
9221 if { (ac_try="$ac_compile"
9222 case "(($ac_try" in
9223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9224   *) ac_try_echo=$ac_try;;
9225 esac
9226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9227 $as_echo "$ac_try_echo") >&5
9228   (eval "$ac_compile") 2>conftest.er1
9229   ac_status=$?
9230   grep -v '^ *+' conftest.er1 >conftest.err
9231   rm -f conftest.er1
9232   cat conftest.err >&5
9233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234   (exit $ac_status); } && {
9235          test -z "$ac_c_werror_flag" ||
9236          test ! -s conftest.err
9237        } && test -s conftest.$ac_objext; then
9238   ac_header_compiler=yes
9239 else
9240   $as_echo "$as_me: failed program was:" >&5
9241 sed 's/^/| /' conftest.$ac_ext >&5
9242
9243         ac_header_compiler=no
9244 fi
9245
9246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9247 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9248 $as_echo "$ac_header_compiler" >&6; }
9249
9250 # Is the header present?
9251 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9252 $as_echo_n "checking $ac_header presence... " >&6; }
9253 cat >conftest.$ac_ext <<_ACEOF
9254 /* confdefs.h.  */
9255 _ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h.  */
9259 #include <$ac_header>
9260 _ACEOF
9261 if { (ac_try="$ac_cpp conftest.$ac_ext"
9262 case "(($ac_try" in
9263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264   *) ac_try_echo=$ac_try;;
9265 esac
9266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9267 $as_echo "$ac_try_echo") >&5
9268   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9269   ac_status=$?
9270   grep -v '^ *+' conftest.er1 >conftest.err
9271   rm -f conftest.er1
9272   cat conftest.err >&5
9273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274   (exit $ac_status); } >/dev/null && {
9275          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9276          test ! -s conftest.err
9277        }; then
9278   ac_header_preproc=yes
9279 else
9280   $as_echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9282
9283   ac_header_preproc=no
9284 fi
9285
9286 rm -f conftest.err conftest.$ac_ext
9287 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9288 $as_echo "$ac_header_preproc" >&6; }
9289
9290 # So?  What about this header?
9291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9292   yes:no: )
9293     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9294 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9295     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9296 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9297     ac_header_preproc=yes
9298     ;;
9299   no:yes:* )
9300     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9301 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9302     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9303 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9304     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9305 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9306     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9307 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9308     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9309 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9310     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9311 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9312
9313     ;;
9314 esac
9315 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9316 $as_echo_n "checking for $ac_header... " >&6; }
9317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9318   $as_echo_n "(cached) " >&6
9319 else
9320   eval "$as_ac_Header=\$ac_header_preproc"
9321 fi
9322 ac_res=`eval 'as_val=${'$as_ac_Header'}
9323                  $as_echo "$as_val"'`
9324                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9325 $as_echo "$ac_res" >&6; }
9326
9327 fi
9328 as_val=`eval 'as_val=${'$as_ac_Header'}
9329                  $as_echo "$as_val"'`
9330    if test "x$as_val" = x""yes; then
9331   cat >>confdefs.h <<_ACEOF
9332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9333 _ACEOF
9334
9335 fi
9336
9337 done
9338
9339   CFLAGS="$save_cflags"
9340   if test "$ac_cv_header_X11_xpm_h" = "yes"; then
9341     save_ldflags="$LDFLAGS"
9342     LDFLAGS="$LDFLAGS $X_LIBS"
9343     { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9344 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9345 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9346   $as_echo_n "(cached) " >&6
9347 else
9348   ac_check_lib_save_LIBS=$LIBS
9349 LIBS="-lXpm $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
9350 cat >conftest.$ac_ext <<_ACEOF
9351 /* confdefs.h.  */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h.  */
9356
9357 /* Override any GCC internal prototype to avoid an error.
9358    Use char because int might match the return type of a GCC
9359    builtin and then its argument prototype would still apply.  */
9360 #ifdef __cplusplus
9361 extern "C"
9362 #endif
9363 char XpmReadFileToPixmap ();
9364 int
9365 main ()
9366 {
9367 return XpmReadFileToPixmap ();
9368   ;
9369   return 0;
9370 }
9371 _ACEOF
9372 rm -f conftest.$ac_objext conftest$ac_exeext
9373 if { (ac_try="$ac_link"
9374 case "(($ac_try" in
9375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9376   *) ac_try_echo=$ac_try;;
9377 esac
9378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9379 $as_echo "$ac_try_echo") >&5
9380   (eval "$ac_link") 2>conftest.er1
9381   ac_status=$?
9382   grep -v '^ *+' conftest.er1 >conftest.err
9383   rm -f conftest.er1
9384   cat conftest.err >&5
9385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386   (exit $ac_status); } && {
9387          test -z "$ac_c_werror_flag" ||
9388          test ! -s conftest.err
9389        } && test -s conftest$ac_exeext && {
9390          test "$cross_compiling" = yes ||
9391          $as_test_x conftest$ac_exeext
9392        }; then
9393   ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9394 else
9395   $as_echo "$as_me: failed program was:" >&5
9396 sed 's/^/| /' conftest.$ac_ext >&5
9397
9398         ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9399 fi
9400
9401 rm -rf conftest.dSYM
9402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9403       conftest$ac_exeext conftest.$ac_ext
9404 LIBS=$ac_check_lib_save_LIBS
9405 fi
9406 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9407 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9408 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then
9409   X_PRE_LIBS="-lXpm $X_PRE_LIBS"; cat >>confdefs.h <<\_ACEOF
9410 #define HAVE_LIBXPM 1
9411 _ACEOF
9412
9413 fi
9414
9415     LDFLAGS="$save_ldflags"
9416   fi
9417 fi
9418
9419
9420
9421
9422
9423
9424 { $as_echo "$as_me:$LINENO: checking whether ptys or pipes should be used" >&5
9425 $as_echo_n "checking whether ptys or pipes should be used... " >&6; }
9426 # Check whether --enable-ptys was given.
9427 if test "${enable_ptys+set}" = set; then
9428   enableval=$enable_ptys; if test "$enableval" = yes; then
9429   USE_PTYS=1
9430   { $as_echo "$as_me:$LINENO: result: ptys (user override)" >&5
9431 $as_echo "ptys (user override)" >&6; }
9432 fi
9433 if test "$enableval" = no; then
9434   USE_PTYS=0
9435   { $as_echo "$as_me:$LINENO: result: pipes (user override)" >&5
9436 $as_echo "pipes (user override)" >&6; }
9437 fi
9438 else
9439   if test "$USE_PTYS" = 1; then
9440   { $as_echo "$as_me:$LINENO: result: ptys" >&5
9441 $as_echo "ptys" >&6; }
9442 else
9443   { $as_echo "$as_me:$LINENO: result: pipes" >&5
9444 $as_echo "pipes" >&6; }
9445 fi
9446 fi
9447
9448 cat >>confdefs.h <<_ACEOF
9449 #define USE_PTYS $USE_PTYS
9450 _ACEOF
9451
9452
9453 # Check whether --enable-zippy was given.
9454 if test "${enable_zippy+set}" = set; then
9455   enableval=$enable_zippy; enable_zippy="$enableval"
9456 else
9457   enable_zippy="yes"
9458 fi
9459
9460 if test "$enable_zippy" = yes; then
9461   cat >>confdefs.h <<\_ACEOF
9462 #define ZIPPY 1
9463 _ACEOF
9464
9465   ZIPPY_O=zippy.o
9466   ZIPPY_H=zippy.h
9467 fi
9468
9469
9470
9471 # Check whether --enable-sigint was given.
9472 if test "${enable_sigint+set}" = set; then
9473   enableval=$enable_sigint; if test "$enableval" = yes; then
9474   cat >>confdefs.h <<\_ACEOF
9475 #define ATTENTION 1
9476 _ACEOF
9477
9478 fi
9479 else
9480   cat >>confdefs.h <<\_ACEOF
9481 #define ATTENTION 1
9482 _ACEOF
9483
9484 fi
9485
9486
9487 cat >>confdefs.h <<_ACEOF
9488 #define PRODUCT "$PRODUCT"
9489 _ACEOF
9490
9491 cat >>confdefs.h <<_ACEOF
9492 #define VERSION "$VERSION"
9493 _ACEOF
9494
9495 cat >>confdefs.h <<_ACEOF
9496 #define PATCHLEVEL "$PATCHLEVEL"
9497 _ACEOF
9498
9499
9500
9501
9502
9503 ac_config_files="$ac_config_files Makefile cmail xboard.texinfo po/Makefile.in"
9504
9505 ac_config_commands="$ac_config_commands default"
9506
9507 cat >confcache <<\_ACEOF
9508 # This file is a shell script that caches the results of configure
9509 # tests run on this system so they can be shared between configure
9510 # scripts and configure runs, see configure's option --config-cache.
9511 # It is not useful on other systems.  If it contains results you don't
9512 # want to keep, you may remove or edit it.
9513 #
9514 # config.status only pays attention to the cache file if you give it
9515 # the --recheck option to rerun configure.
9516 #
9517 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9518 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9519 # following values.
9520
9521 _ACEOF
9522
9523 # The following way of writing the cache mishandles newlines in values,
9524 # but we know of no workaround that is simple, portable, and efficient.
9525 # So, we kill variables containing newlines.
9526 # Ultrix sh set writes to stderr and can't be redirected directly,
9527 # and sets the high bit in the cache file unless we assign to the vars.
9528 (
9529   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9530     eval ac_val=\$$ac_var
9531     case $ac_val in #(
9532     *${as_nl}*)
9533       case $ac_var in #(
9534       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
9535 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9536       esac
9537       case $ac_var in #(
9538       _ | IFS | as_nl) ;; #(
9539       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9540       *) $as_unset $ac_var ;;
9541       esac ;;
9542     esac
9543   done
9544
9545   (set) 2>&1 |
9546     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9547     *${as_nl}ac_space=\ *)
9548       # `set' does not quote correctly, so add quotes (double-quote
9549       # substitution turns \\\\ into \\, and sed turns \\ into \).
9550       sed -n \
9551         "s/'/'\\\\''/g;
9552           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9553       ;; #(
9554     *)
9555       # `set' quotes correctly as required by POSIX, so do not add quotes.
9556       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9557       ;;
9558     esac |
9559     sort
9560 ) |
9561   sed '
9562      /^ac_cv_env_/b end
9563      t clear
9564      :clear
9565      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9566      t end
9567      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9568      :end' >>confcache
9569 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9570   if test -w "$cache_file"; then
9571     test "x$cache_file" != "x/dev/null" &&
9572       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
9573 $as_echo "$as_me: updating cache $cache_file" >&6;}
9574     cat confcache >$cache_file
9575   else
9576     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9577 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9578   fi
9579 fi
9580 rm -f confcache
9581
9582 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9583 # Let make expand exec_prefix.
9584 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9585
9586 DEFS=-DHAVE_CONFIG_H
9587
9588 ac_libobjs=
9589 ac_ltlibobjs=
9590 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9591   # 1. Remove the extension, and $U if already installed.
9592   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9593   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9594   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9595   #    will be set to the directory where LIBOBJS objects are built.
9596   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9597   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9598 done
9599 LIBOBJS=$ac_libobjs
9600
9601 LTLIBOBJS=$ac_ltlibobjs
9602
9603
9604
9605 : ${CONFIG_STATUS=./config.status}
9606 ac_write_fail=0
9607 ac_clean_files_save=$ac_clean_files
9608 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9609 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9610 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9611 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9612 #! $SHELL
9613 # Generated by $as_me.
9614 # Run this file to recreate the current configuration.
9615 # Compiler output produced by configure, useful for debugging
9616 # configure, is in config.log if it exists.
9617
9618 debug=false
9619 ac_cs_recheck=false
9620 ac_cs_silent=false
9621 SHELL=\${CONFIG_SHELL-$SHELL}
9622 _ACEOF
9623
9624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9625 ## --------------------- ##
9626 ## M4sh Initialization.  ##
9627 ## --------------------- ##
9628
9629 # Be more Bourne compatible
9630 DUALCASE=1; export DUALCASE # for MKS sh
9631 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9632   emulate sh
9633   NULLCMD=:
9634   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9635   # is contrary to our usage.  Disable this feature.
9636   alias -g '${1+"$@"}'='"$@"'
9637   setopt NO_GLOB_SUBST
9638 else
9639   case `(set -o) 2>/dev/null` in
9640   *posix*) set -o posix ;;
9641 esac
9642
9643 fi
9644
9645
9646
9647
9648 # PATH needs CR
9649 # Avoid depending upon Character Ranges.
9650 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9651 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9652 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9653 as_cr_digits='0123456789'
9654 as_cr_alnum=$as_cr_Letters$as_cr_digits
9655
9656 as_nl='
9657 '
9658 export as_nl
9659 # Printing a long string crashes Solaris 7 /usr/bin/printf.
9660 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9661 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9662 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9663 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9664   as_echo='printf %s\n'
9665   as_echo_n='printf %s'
9666 else
9667   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9668     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9669     as_echo_n='/usr/ucb/echo -n'
9670   else
9671     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9672     as_echo_n_body='eval
9673       arg=$1;
9674       case $arg in
9675       *"$as_nl"*)
9676         expr "X$arg" : "X\\(.*\\)$as_nl";
9677         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9678       esac;
9679       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9680     '
9681     export as_echo_n_body
9682     as_echo_n='sh -c $as_echo_n_body as_echo'
9683   fi
9684   export as_echo_body
9685   as_echo='sh -c $as_echo_body as_echo'
9686 fi
9687
9688 # The user is always right.
9689 if test "${PATH_SEPARATOR+set}" != set; then
9690   PATH_SEPARATOR=:
9691   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9692     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9693       PATH_SEPARATOR=';'
9694   }
9695 fi
9696
9697 # Support unset when possible.
9698 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9699   as_unset=unset
9700 else
9701   as_unset=false
9702 fi
9703
9704
9705 # IFS
9706 # We need space, tab and new line, in precisely that order.  Quoting is
9707 # there to prevent editors from complaining about space-tab.
9708 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9709 # splitting by setting IFS to empty value.)
9710 IFS=" ""        $as_nl"
9711
9712 # Find who we are.  Look in the path if we contain no directory separator.
9713 case $0 in
9714   *[\\/]* ) as_myself=$0 ;;
9715   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9716 for as_dir in $PATH
9717 do
9718   IFS=$as_save_IFS
9719   test -z "$as_dir" && as_dir=.
9720   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9721 done
9722 IFS=$as_save_IFS
9723
9724      ;;
9725 esac
9726 # We did not find ourselves, most probably we were run as `sh COMMAND'
9727 # in which case we are not to be found in the path.
9728 if test "x$as_myself" = x; then
9729   as_myself=$0
9730 fi
9731 if test ! -f "$as_myself"; then
9732   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9733   { (exit 1); exit 1; }
9734 fi
9735
9736 # Work around bugs in pre-3.0 UWIN ksh.
9737 for as_var in ENV MAIL MAILPATH
9738 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9739 done
9740 PS1='$ '
9741 PS2='> '
9742 PS4='+ '
9743
9744 # NLS nuisances.
9745 LC_ALL=C
9746 export LC_ALL
9747 LANGUAGE=C
9748 export LANGUAGE
9749
9750 # Required to use basename.
9751 if expr a : '\(a\)' >/dev/null 2>&1 &&
9752    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9753   as_expr=expr
9754 else
9755   as_expr=false
9756 fi
9757
9758 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9759   as_basename=basename
9760 else
9761   as_basename=false
9762 fi
9763
9764
9765 # Name of the executable.
9766 as_me=`$as_basename -- "$0" ||
9767 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9768          X"$0" : 'X\(//\)$' \| \
9769          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9770 $as_echo X/"$0" |
9771     sed '/^.*\/\([^/][^/]*\)\/*$/{
9772             s//\1/
9773             q
9774           }
9775           /^X\/\(\/\/\)$/{
9776             s//\1/
9777             q
9778           }
9779           /^X\/\(\/\).*/{
9780             s//\1/
9781             q
9782           }
9783           s/.*/./; q'`
9784
9785 # CDPATH.
9786 $as_unset CDPATH
9787
9788
9789
9790   as_lineno_1=$LINENO
9791   as_lineno_2=$LINENO
9792   test "x$as_lineno_1" != "x$as_lineno_2" &&
9793   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9794
9795   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9796   # uniformly replaced by the line number.  The first 'sed' inserts a
9797   # line-number line after each line using $LINENO; the second 'sed'
9798   # does the real work.  The second script uses 'N' to pair each
9799   # line-number line with the line containing $LINENO, and appends
9800   # trailing '-' during substitution so that $LINENO is not a special
9801   # case at line end.
9802   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9803   # scripts with optimization help from Paolo Bonzini.  Blame Lee
9804   # E. McMahon (1931-1989) for sed's syntax.  :-)
9805   sed -n '
9806     p
9807     /[$]LINENO/=
9808   ' <$as_myself |
9809     sed '
9810       s/[$]LINENO.*/&-/
9811       t lineno
9812       b
9813       :lineno
9814       N
9815       :loop
9816       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9817       t loop
9818       s/-\n.*//
9819     ' >$as_me.lineno &&
9820   chmod +x "$as_me.lineno" ||
9821     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9822    { (exit 1); exit 1; }; }
9823
9824   # Don't try to exec as it changes $[0], causing all sort of problems
9825   # (the dirname of $[0] is not the place where we might find the
9826   # original and so on.  Autoconf is especially sensitive to this).
9827   . "./$as_me.lineno"
9828   # Exit status is that of the last command.
9829   exit
9830 }
9831
9832
9833 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9834   as_dirname=dirname
9835 else
9836   as_dirname=false
9837 fi
9838
9839 ECHO_C= ECHO_N= ECHO_T=
9840 case `echo -n x` in
9841 -n*)
9842   case `echo 'x\c'` in
9843   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
9844   *)   ECHO_C='\c';;
9845   esac;;
9846 *)
9847   ECHO_N='-n';;
9848 esac
9849 if expr a : '\(a\)' >/dev/null 2>&1 &&
9850    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9851   as_expr=expr
9852 else
9853   as_expr=false
9854 fi
9855
9856 rm -f conf$$ conf$$.exe conf$$.file
9857 if test -d conf$$.dir; then
9858   rm -f conf$$.dir/conf$$.file
9859 else
9860   rm -f conf$$.dir
9861   mkdir conf$$.dir 2>/dev/null
9862 fi
9863 if (echo >conf$$.file) 2>/dev/null; then
9864   if ln -s conf$$.file conf$$ 2>/dev/null; then
9865     as_ln_s='ln -s'
9866     # ... but there are two gotchas:
9867     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9868     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9869     # In both cases, we have to default to `cp -p'.
9870     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9871       as_ln_s='cp -p'
9872   elif ln conf$$.file conf$$ 2>/dev/null; then
9873     as_ln_s=ln
9874   else
9875     as_ln_s='cp -p'
9876   fi
9877 else
9878   as_ln_s='cp -p'
9879 fi
9880 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9881 rmdir conf$$.dir 2>/dev/null
9882
9883 if mkdir -p . 2>/dev/null; then
9884   as_mkdir_p=:
9885 else
9886   test -d ./-p && rmdir ./-p
9887   as_mkdir_p=false
9888 fi
9889
9890 if test -x / >/dev/null 2>&1; then
9891   as_test_x='test -x'
9892 else
9893   if ls -dL / >/dev/null 2>&1; then
9894     as_ls_L_option=L
9895   else
9896     as_ls_L_option=
9897   fi
9898   as_test_x='
9899     eval sh -c '\''
9900       if test -d "$1"; then
9901         test -d "$1/.";
9902       else
9903         case $1 in
9904         -*)set "./$1";;
9905         esac;
9906         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
9907         ???[sx]*):;;*)false;;esac;fi
9908     '\'' sh
9909   '
9910 fi
9911 as_executable_p=$as_test_x
9912
9913 # Sed expression to map a string onto a valid CPP name.
9914 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9915
9916 # Sed expression to map a string onto a valid variable name.
9917 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9918
9919
9920 exec 6>&1
9921
9922 # Save the log message, to keep $[0] and so on meaningful, and to
9923 # report actual input values of CONFIG_FILES etc. instead of their
9924 # values after options handling.
9925 ac_log="
9926 This file was extended by $as_me, which was
9927 generated by GNU Autoconf 2.63.  Invocation command line was
9928
9929   CONFIG_FILES    = $CONFIG_FILES
9930   CONFIG_HEADERS  = $CONFIG_HEADERS
9931   CONFIG_LINKS    = $CONFIG_LINKS
9932   CONFIG_COMMANDS = $CONFIG_COMMANDS
9933   $ $0 $@
9934
9935 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9936 "
9937
9938 _ACEOF
9939
9940 case $ac_config_files in *"
9941 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9942 esac
9943
9944 case $ac_config_headers in *"
9945 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9946 esac
9947
9948
9949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9950 # Files that config.status was made for.
9951 config_files="$ac_config_files"
9952 config_headers="$ac_config_headers"
9953 config_commands="$ac_config_commands"
9954
9955 _ACEOF
9956
9957 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9958 ac_cs_usage="\
9959 \`$as_me' instantiates files from templates according to the
9960 current configuration.
9961
9962 Usage: $0 [OPTION]... [FILE]...
9963
9964   -h, --help       print this help, then exit
9965   -V, --version    print version number and configuration settings, then exit
9966   -q, --quiet, --silent
9967                    do not print progress messages
9968   -d, --debug      don't remove temporary files
9969       --recheck    update $as_me by reconfiguring in the same conditions
9970       --file=FILE[:TEMPLATE]
9971                    instantiate the configuration file FILE
9972       --header=FILE[:TEMPLATE]
9973                    instantiate the configuration header FILE
9974
9975 Configuration files:
9976 $config_files
9977
9978 Configuration headers:
9979 $config_headers
9980
9981 Configuration commands:
9982 $config_commands
9983
9984 Report bugs to <bug-autoconf@gnu.org>."
9985
9986 _ACEOF
9987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9988 ac_cs_version="\\
9989 config.status
9990 configured by $0, generated by GNU Autoconf 2.63,
9991   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9992
9993 Copyright (C) 2008 Free Software Foundation, Inc.
9994 This config.status script is free software; the Free Software Foundation
9995 gives unlimited permission to copy, distribute and modify it."
9996
9997 ac_pwd='$ac_pwd'
9998 srcdir='$srcdir'
9999 INSTALL='$INSTALL'
10000 test -n "\$AWK" || AWK=awk
10001 _ACEOF
10002
10003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10004 # The default lists apply if the user does not specify any file.
10005 ac_need_defaults=:
10006 while test $# != 0
10007 do
10008   case $1 in
10009   --*=*)
10010     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10011     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10012     ac_shift=:
10013     ;;
10014   *)
10015     ac_option=$1
10016     ac_optarg=$2
10017     ac_shift=shift
10018     ;;
10019   esac
10020
10021   case $ac_option in
10022   # Handling of the options.
10023   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10024     ac_cs_recheck=: ;;
10025   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10026     $as_echo "$ac_cs_version"; exit ;;
10027   --debug | --debu | --deb | --de | --d | -d )
10028     debug=: ;;
10029   --file | --fil | --fi | --f )
10030     $ac_shift
10031     case $ac_optarg in
10032     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10033     esac
10034     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10035     ac_need_defaults=false;;
10036   --header | --heade | --head | --hea )
10037     $ac_shift
10038     case $ac_optarg in
10039     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10040     esac
10041     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10042     ac_need_defaults=false;;
10043   --he | --h)
10044     # Conflict between --help and --header
10045     { $as_echo "$as_me: error: ambiguous option: $1
10046 Try \`$0 --help' for more information." >&2
10047    { (exit 1); exit 1; }; };;
10048   --help | --hel | -h )
10049     $as_echo "$ac_cs_usage"; exit ;;
10050   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10051   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10052     ac_cs_silent=: ;;
10053
10054   # This is an error.
10055   -*) { $as_echo "$as_me: error: unrecognized option: $1
10056 Try \`$0 --help' for more information." >&2
10057    { (exit 1); exit 1; }; } ;;
10058
10059   *) ac_config_targets="$ac_config_targets $1"
10060      ac_need_defaults=false ;;
10061
10062   esac
10063   shift
10064 done
10065
10066 ac_configure_extra_args=
10067
10068 if $ac_cs_silent; then
10069   exec 6>/dev/null
10070   ac_configure_extra_args="$ac_configure_extra_args --silent"
10071 fi
10072
10073 _ACEOF
10074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10075 if \$ac_cs_recheck; then
10076   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10077   shift
10078   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10079   CONFIG_SHELL='$SHELL'
10080   export CONFIG_SHELL
10081   exec "\$@"
10082 fi
10083
10084 _ACEOF
10085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10086 exec 5>>config.log
10087 {
10088   echo
10089   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10090 ## Running $as_me. ##
10091 _ASBOX
10092   $as_echo "$ac_log"
10093 } >&5
10094
10095 _ACEOF
10096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10097 #
10098 # INIT-COMMANDS
10099 #
10100 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
10101     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
10102     # from automake.
10103     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
10104     # Capture the value of LINGUAS because we need it to compute CATALOGS.
10105     LINGUAS="${LINGUAS-%UNSET%}"
10106
10107
10108 _ACEOF
10109
10110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10111
10112 # Handling of arguments.
10113 for ac_config_target in $ac_config_targets
10114 do
10115   case $ac_config_target in
10116     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10117     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10118     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10119     "cmail") CONFIG_FILES="$CONFIG_FILES cmail" ;;
10120     "xboard.texinfo") CONFIG_FILES="$CONFIG_FILES xboard.texinfo" ;;
10121     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
10122     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
10123
10124   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10125 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10126    { (exit 1); exit 1; }; };;
10127   esac
10128 done
10129
10130
10131 # If the user did not use the arguments to specify the items to instantiate,
10132 # then the envvar interface is used.  Set only those that are not.
10133 # We use the long form for the default assignment because of an extremely
10134 # bizarre bug on SunOS 4.1.3.
10135 if $ac_need_defaults; then
10136   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10137   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10138   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10139 fi
10140
10141 # Have a temporary directory for convenience.  Make it in the build tree
10142 # simply because there is no reason against having it here, and in addition,
10143 # creating and moving files from /tmp can sometimes cause problems.
10144 # Hook for its removal unless debugging.
10145 # Note that there is a small window in which the directory will not be cleaned:
10146 # after its creation but before its name has been assigned to `$tmp'.
10147 $debug ||
10148 {
10149   tmp=
10150   trap 'exit_status=$?
10151   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10152 ' 0
10153   trap '{ (exit 1); exit 1; }' 1 2 13 15
10154 }
10155 # Create a (secure) tmp directory for tmp files.
10156
10157 {
10158   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10159   test -n "$tmp" && test -d "$tmp"
10160 }  ||
10161 {
10162   tmp=./conf$$-$RANDOM
10163   (umask 077 && mkdir "$tmp")
10164 } ||
10165 {
10166    $as_echo "$as_me: cannot create a temporary directory in ." >&2
10167    { (exit 1); exit 1; }
10168 }
10169
10170 # Set up the scripts for CONFIG_FILES section.
10171 # No need to generate them if there are no CONFIG_FILES.
10172 # This happens for instance with `./config.status config.h'.
10173 if test -n "$CONFIG_FILES"; then
10174
10175
10176 ac_cr='\r'
10177 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10178 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10179   ac_cs_awk_cr='\\r'
10180 else
10181   ac_cs_awk_cr=$ac_cr
10182 fi
10183
10184 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10185 _ACEOF
10186
10187
10188 {
10189   echo "cat >conf$$subs.awk <<_ACEOF" &&
10190   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10191   echo "_ACEOF"
10192 } >conf$$subs.sh ||
10193   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10194 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10195    { (exit 1); exit 1; }; }
10196 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10197 ac_delim='%!_!# '
10198 for ac_last_try in false false false false false :; do
10199   . ./conf$$subs.sh ||
10200     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10201 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10202    { (exit 1); exit 1; }; }
10203
10204   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10205   if test $ac_delim_n = $ac_delim_num; then
10206     break
10207   elif $ac_last_try; then
10208     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10209 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10210    { (exit 1); exit 1; }; }
10211   else
10212     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10213   fi
10214 done
10215 rm -f conf$$subs.sh
10216
10217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10218 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10219 _ACEOF
10220 sed -n '
10221 h
10222 s/^/S["/; s/!.*/"]=/
10223 p
10224 g
10225 s/^[^!]*!//
10226 :repl
10227 t repl
10228 s/'"$ac_delim"'$//
10229 t delim
10230 :nl
10231 h
10232 s/\(.\{148\}\).*/\1/
10233 t more1
10234 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10235 p
10236 n
10237 b repl
10238 :more1
10239 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10240 p
10241 g
10242 s/.\{148\}//
10243 t nl
10244 :delim
10245 h
10246 s/\(.\{148\}\).*/\1/
10247 t more2
10248 s/["\\]/\\&/g; s/^/"/; s/$/"/
10249 p
10250 b
10251 :more2
10252 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10253 p
10254 g
10255 s/.\{148\}//
10256 t delim
10257 ' <conf$$subs.awk | sed '
10258 /^[^""]/{
10259   N
10260   s/\n//
10261 }
10262 ' >>$CONFIG_STATUS || ac_write_fail=1
10263 rm -f conf$$subs.awk
10264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10265 _ACAWK
10266 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10267   for (key in S) S_is_set[key] = 1
10268   FS = "\a"
10269
10270 }
10271 {
10272   line = $ 0
10273   nfields = split(line, field, "@")
10274   substed = 0
10275   len = length(field[1])
10276   for (i = 2; i < nfields; i++) {
10277     key = field[i]
10278     keylen = length(key)
10279     if (S_is_set[key]) {
10280       value = S[key]
10281       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10282       len += length(value) + length(field[++i])
10283       substed = 1
10284     } else
10285       len += 1 + keylen
10286   }
10287
10288   print line
10289 }
10290
10291 _ACAWK
10292 _ACEOF
10293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10294 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10295   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10296 else
10297   cat
10298 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10299   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10300 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10301    { (exit 1); exit 1; }; }
10302 _ACEOF
10303
10304 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10305 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10306 # trailing colons and then remove the whole line if VPATH becomes empty
10307 # (actually we leave an empty line to preserve line numbers).
10308 if test "x$srcdir" = x.; then
10309   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10310 s/:*\$(srcdir):*/:/
10311 s/:*\${srcdir}:*/:/
10312 s/:*@srcdir@:*/:/
10313 s/^\([^=]*=[     ]*\):*/\1/
10314 s/:*$//
10315 s/^[^=]*=[       ]*$//
10316 }'
10317 fi
10318
10319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10320 fi # test -n "$CONFIG_FILES"
10321
10322 # Set up the scripts for CONFIG_HEADERS section.
10323 # No need to generate them if there are no CONFIG_HEADERS.
10324 # This happens for instance with `./config.status Makefile'.
10325 if test -n "$CONFIG_HEADERS"; then
10326 cat >"$tmp/defines.awk" <<\_ACAWK ||
10327 BEGIN {
10328 _ACEOF
10329
10330 # Transform confdefs.h into an awk script `defines.awk', embedded as
10331 # here-document in config.status, that substitutes the proper values into
10332 # config.h.in to produce config.h.
10333
10334 # Create a delimiter string that does not exist in confdefs.h, to ease
10335 # handling of long lines.
10336 ac_delim='%!_!# '
10337 for ac_last_try in false false :; do
10338   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10339   if test -z "$ac_t"; then
10340     break
10341   elif $ac_last_try; then
10342     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10343 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10344    { (exit 1); exit 1; }; }
10345   else
10346     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10347   fi
10348 done
10349
10350 # For the awk script, D is an array of macro values keyed by name,
10351 # likewise P contains macro parameters if any.  Preserve backslash
10352 # newline sequences.
10353
10354 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10355 sed -n '
10356 s/.\{148\}/&'"$ac_delim"'/g
10357 t rset
10358 :rset
10359 s/^[     ]*#[    ]*define[       ][      ]*/ /
10360 t def
10361 d
10362 :def
10363 s/\\$//
10364 t bsnl
10365 s/["\\]/\\&/g
10366 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10367 D["\1"]=" \3"/p
10368 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
10369 d
10370 :bsnl
10371 s/["\\]/\\&/g
10372 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
10373 D["\1"]=" \3\\\\\\n"\\/p
10374 t cont
10375 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10376 t cont
10377 d
10378 :cont
10379 n
10380 s/.\{148\}/&'"$ac_delim"'/g
10381 t clear
10382 :clear
10383 s/\\$//
10384 t bsnlc
10385 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10386 d
10387 :bsnlc
10388 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10389 b cont
10390 ' <confdefs.h | sed '
10391 s/'"$ac_delim"'/"\\\
10392 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10393
10394 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10395   for (key in D) D_is_set[key] = 1
10396   FS = "\a"
10397 }
10398 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10399   line = \$ 0
10400   split(line, arg, " ")
10401   if (arg[1] == "#") {
10402     defundef = arg[2]
10403     mac1 = arg[3]
10404   } else {
10405     defundef = substr(arg[1], 2)
10406     mac1 = arg[2]
10407   }
10408   split(mac1, mac2, "(") #)
10409   macro = mac2[1]
10410   prefix = substr(line, 1, index(line, defundef) - 1)
10411   if (D_is_set[macro]) {
10412     # Preserve the white space surrounding the "#".
10413     print prefix "define", macro P[macro] D[macro]
10414     next
10415   } else {
10416     # Replace #undef with comments.  This is necessary, for example,
10417     # in the case of _POSIX_SOURCE, which is predefined and required
10418     # on some systems where configure will not decide to define it.
10419     if (defundef == "undef") {
10420       print "/*", prefix defundef, macro, "*/"
10421       next
10422     }
10423   }
10424 }
10425 { print }
10426 _ACAWK
10427 _ACEOF
10428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10429   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
10430 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
10431    { (exit 1); exit 1; }; }
10432 fi # test -n "$CONFIG_HEADERS"
10433
10434
10435 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
10436 shift
10437 for ac_tag
10438 do
10439   case $ac_tag in
10440   :[FHLC]) ac_mode=$ac_tag; continue;;
10441   esac
10442   case $ac_mode$ac_tag in
10443   :[FHL]*:*);;
10444   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
10445 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
10446    { (exit 1); exit 1; }; };;
10447   :[FH]-) ac_tag=-:-;;
10448   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10449   esac
10450   ac_save_IFS=$IFS
10451   IFS=:
10452   set x $ac_tag
10453   IFS=$ac_save_IFS
10454   shift
10455   ac_file=$1
10456   shift
10457
10458   case $ac_mode in
10459   :L) ac_source=$1;;
10460   :[FH])
10461     ac_file_inputs=
10462     for ac_f
10463     do
10464       case $ac_f in
10465       -) ac_f="$tmp/stdin";;
10466       *) # Look for the file first in the build tree, then in the source tree
10467          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10468          # because $ac_f cannot contain `:'.
10469          test -f "$ac_f" ||
10470            case $ac_f in
10471            [\\/$]*) false;;
10472            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10473            esac ||
10474            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10475 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10476    { (exit 1); exit 1; }; };;
10477       esac
10478       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10479       ac_file_inputs="$ac_file_inputs '$ac_f'"
10480     done
10481
10482     # Let's still pretend it is `configure' which instantiates (i.e., don't
10483     # use $as_me), people would be surprised to read:
10484     #    /* config.h.  Generated by config.status.  */
10485     configure_input='Generated from '`
10486           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10487         `' by configure.'
10488     if test x"$ac_file" != x-; then
10489       configure_input="$ac_file.  $configure_input"
10490       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
10491 $as_echo "$as_me: creating $ac_file" >&6;}
10492     fi
10493     # Neutralize special characters interpreted by sed in replacement strings.
10494     case $configure_input in #(
10495     *\&* | *\|* | *\\* )
10496        ac_sed_conf_input=`$as_echo "$configure_input" |
10497        sed 's/[\\\\&|]/\\\\&/g'`;; #(
10498     *) ac_sed_conf_input=$configure_input;;
10499     esac
10500
10501     case $ac_tag in
10502     *:-:* | *:-) cat >"$tmp/stdin" \
10503       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10504 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10505    { (exit 1); exit 1; }; } ;;
10506     esac
10507     ;;
10508   esac
10509
10510   ac_dir=`$as_dirname -- "$ac_file" ||
10511 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10512          X"$ac_file" : 'X\(//\)[^/]' \| \
10513          X"$ac_file" : 'X\(//\)$' \| \
10514          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10515 $as_echo X"$ac_file" |
10516     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10517             s//\1/
10518             q
10519           }
10520           /^X\(\/\/\)[^/].*/{
10521             s//\1/
10522             q
10523           }
10524           /^X\(\/\/\)$/{
10525             s//\1/
10526             q
10527           }
10528           /^X\(\/\).*/{
10529             s//\1/
10530             q
10531           }
10532           s/.*/./; q'`
10533   { as_dir="$ac_dir"
10534   case $as_dir in #(
10535   -*) as_dir=./$as_dir;;
10536   esac
10537   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10538     as_dirs=
10539     while :; do
10540       case $as_dir in #(
10541       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10542       *) as_qdir=$as_dir;;
10543       esac
10544       as_dirs="'$as_qdir' $as_dirs"
10545       as_dir=`$as_dirname -- "$as_dir" ||
10546 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10547          X"$as_dir" : 'X\(//\)[^/]' \| \
10548          X"$as_dir" : 'X\(//\)$' \| \
10549          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10550 $as_echo X"$as_dir" |
10551     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10552             s//\1/
10553             q
10554           }
10555           /^X\(\/\/\)[^/].*/{
10556             s//\1/
10557             q
10558           }
10559           /^X\(\/\/\)$/{
10560             s//\1/
10561             q
10562           }
10563           /^X\(\/\).*/{
10564             s//\1/
10565             q
10566           }
10567           s/.*/./; q'`
10568       test -d "$as_dir" && break
10569     done
10570     test -z "$as_dirs" || eval "mkdir $as_dirs"
10571   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10572 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
10573    { (exit 1); exit 1; }; }; }
10574   ac_builddir=.
10575
10576 case "$ac_dir" in
10577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10578 *)
10579   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10580   # A ".." for each directory in $ac_dir_suffix.
10581   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10582   case $ac_top_builddir_sub in
10583   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10584   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10585   esac ;;
10586 esac
10587 ac_abs_top_builddir=$ac_pwd
10588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10589 # for backward compatibility:
10590 ac_top_builddir=$ac_top_build_prefix
10591
10592 case $srcdir in
10593   .)  # We are building in place.
10594     ac_srcdir=.
10595     ac_top_srcdir=$ac_top_builddir_sub
10596     ac_abs_top_srcdir=$ac_pwd ;;
10597   [\\/]* | ?:[\\/]* )  # Absolute name.
10598     ac_srcdir=$srcdir$ac_dir_suffix;
10599     ac_top_srcdir=$srcdir
10600     ac_abs_top_srcdir=$srcdir ;;
10601   *) # Relative name.
10602     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10603     ac_top_srcdir=$ac_top_build_prefix$srcdir
10604     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10605 esac
10606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10607
10608
10609   case $ac_mode in
10610   :F)
10611   #
10612   # CONFIG_FILE
10613   #
10614
10615   case $INSTALL in
10616   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10617   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10618   esac
10619 _ACEOF
10620
10621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10622 # If the template does not know about datarootdir, expand it.
10623 # FIXME: This hack should be removed a few years after 2.60.
10624 ac_datarootdir_hack=; ac_datarootdir_seen=
10625
10626 ac_sed_dataroot='
10627 /datarootdir/ {
10628   p
10629   q
10630 }
10631 /@datadir@/p
10632 /@docdir@/p
10633 /@infodir@/p
10634 /@localedir@/p
10635 /@mandir@/p
10636 '
10637 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10638 *datarootdir*) ac_datarootdir_seen=yes;;
10639 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10640   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10641 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10642 _ACEOF
10643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10644   ac_datarootdir_hack='
10645   s&@datadir@&$datadir&g
10646   s&@docdir@&$docdir&g
10647   s&@infodir@&$infodir&g
10648   s&@localedir@&$localedir&g
10649   s&@mandir@&$mandir&g
10650     s&\\\${datarootdir}&$datarootdir&g' ;;
10651 esac
10652 _ACEOF
10653
10654 # Neutralize VPATH when `$srcdir' = `.'.
10655 # Shell code in configure.ac might set extrasub.
10656 # FIXME: do we really want to maintain this feature?
10657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10658 ac_sed_extra="$ac_vpsub
10659 $extrasub
10660 _ACEOF
10661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10662 :t
10663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10664 s|@configure_input@|$ac_sed_conf_input|;t t
10665 s&@top_builddir@&$ac_top_builddir_sub&;t t
10666 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10667 s&@srcdir@&$ac_srcdir&;t t
10668 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10669 s&@top_srcdir@&$ac_top_srcdir&;t t
10670 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10671 s&@builddir@&$ac_builddir&;t t
10672 s&@abs_builddir@&$ac_abs_builddir&;t t
10673 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10674 s&@INSTALL@&$ac_INSTALL&;t t
10675 $ac_datarootdir_hack
10676 "
10677 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10678   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10679 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10680    { (exit 1); exit 1; }; }
10681
10682 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10683   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10684   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10685   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10686 which seems to be undefined.  Please make sure it is defined." >&5
10687 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10688 which seems to be undefined.  Please make sure it is defined." >&2;}
10689
10690   rm -f "$tmp/stdin"
10691   case $ac_file in
10692   -) cat "$tmp/out" && rm -f "$tmp/out";;
10693   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10694   esac \
10695   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10696 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10697    { (exit 1); exit 1; }; }
10698  ;;
10699   :H)
10700   #
10701   # CONFIG_HEADER
10702   #
10703   if test x"$ac_file" != x-; then
10704     {
10705       $as_echo "/* $configure_input  */" \
10706       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10707     } >"$tmp/config.h" \
10708       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10709 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10710    { (exit 1); exit 1; }; }
10711     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10712       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10713 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10714     else
10715       rm -f "$ac_file"
10716       mv "$tmp/config.h" "$ac_file" \
10717         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
10718 $as_echo "$as_me: error: could not create $ac_file" >&2;}
10719    { (exit 1); exit 1; }; }
10720     fi
10721   else
10722     $as_echo "/* $configure_input  */" \
10723       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10724       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
10725 $as_echo "$as_me: error: could not create -" >&2;}
10726    { (exit 1); exit 1; }; }
10727   fi
10728  ;;
10729
10730   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
10731 $as_echo "$as_me: executing $ac_file commands" >&6;}
10732  ;;
10733   esac
10734
10735
10736   case $ac_file$ac_mode in
10737     "default-1":C)
10738     for ac_file in $CONFIG_FILES; do
10739       # Support "outfile[:infile[:infile...]]"
10740       case "$ac_file" in
10741         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10742       esac
10743       # PO directories have a Makefile.in generated from Makefile.in.in.
10744       case "$ac_file" in */Makefile.in)
10745         # Adjust a relative srcdir.
10746         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10747         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10748         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10749         # In autoconf-2.13 it is called $ac_given_srcdir.
10750         # In autoconf-2.50 it is called $srcdir.
10751         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10752         case "$ac_given_srcdir" in
10753           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10754           /*) top_srcdir="$ac_given_srcdir" ;;
10755           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
10756         esac
10757         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10758           rm -f "$ac_dir/POTFILES"
10759           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10760           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10761           POMAKEFILEDEPS="POTFILES.in"
10762           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
10763           # on $ac_dir but don't depend on user-specified configuration
10764           # parameters.
10765           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10766             # The LINGUAS file contains the set of available languages.
10767             if test -n "$OBSOLETE_ALL_LINGUAS"; then
10768               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10769             fi
10770             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10771             # Hide the ALL_LINGUAS assigment from automake.
10772             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10773             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10774           else
10775             # The set of available languages was given in configure.in.
10776             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10777           fi
10778           case "$ac_given_srcdir" in
10779             .) srcdirpre= ;;
10780             *) srcdirpre='$(srcdir)/' ;;
10781           esac
10782           POFILES=
10783           GMOFILES=
10784           UPDATEPOFILES=
10785           DUMMYPOFILES=
10786           for lang in $ALL_LINGUAS; do
10787             POFILES="$POFILES $srcdirpre$lang.po"
10788             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10789             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10790             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10791           done
10792           # CATALOGS depends on both $ac_dir and the user's LINGUAS
10793           # environment variable.
10794           INST_LINGUAS=
10795           if test -n "$ALL_LINGUAS"; then
10796             for presentlang in $ALL_LINGUAS; do
10797               useit=no
10798               if test "%UNSET%" != "$LINGUAS"; then
10799                 desiredlanguages="$LINGUAS"
10800               else
10801                 desiredlanguages="$ALL_LINGUAS"
10802               fi
10803               for desiredlang in $desiredlanguages; do
10804                 # Use the presentlang catalog if desiredlang is
10805                 #   a. equal to presentlang, or
10806                 #   b. a variant of presentlang (because in this case,
10807                 #      presentlang can be used as a fallback for messages
10808                 #      which are not translated in the desiredlang catalog).
10809                 case "$desiredlang" in
10810                   "$presentlang"*) useit=yes;;
10811                 esac
10812               done
10813               if test $useit = yes; then
10814                 INST_LINGUAS="$INST_LINGUAS $presentlang"
10815               fi
10816             done
10817           fi
10818           CATALOGS=
10819           if test -n "$INST_LINGUAS"; then
10820             for lang in $INST_LINGUAS; do
10821               CATALOGS="$CATALOGS $lang.gmo"
10822             done
10823           fi
10824           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10825           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10826           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10827             if test -f "$f"; then
10828               case "$f" in
10829                 *.orig | *.bak | *~) ;;
10830                 *) cat "$f" >> "$ac_dir/Makefile" ;;
10831               esac
10832             fi
10833           done
10834         fi
10835         ;;
10836       esac
10837     done ;;
10838     "default":C) test -z "$CONFIG_HEADERS" || date > stamp-h
10839 chmod 755 cmail
10840  ;;
10841
10842   esac
10843 done # for ac_tag
10844
10845
10846 { (exit 0); exit 0; }
10847 _ACEOF
10848 chmod +x $CONFIG_STATUS
10849 ac_clean_files=$ac_clean_files_save
10850
10851 test $ac_write_fail = 0 ||
10852   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
10853 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
10854    { (exit 1); exit 1; }; }
10855
10856
10857 # configure is writing to config.log, and then calls config.status.
10858 # config.status does its own redirection, appending to config.log.
10859 # Unfortunately, on DOS this fails, as config.log is still kept open
10860 # by configure, so config.status won't be able to write to it; its
10861 # output is simply discarded.  So we exec the FD to /dev/null,
10862 # effectively closing config.log, so it can be properly (re)opened and
10863 # appended to by config.status.  When coming back to configure, we
10864 # need to make the FD available again.
10865 if test "$no_create" != yes; then
10866   ac_cs_success=:
10867   ac_config_status_args=
10868   test "$silent" = yes &&
10869     ac_config_status_args="$ac_config_status_args --quiet"
10870   exec 5>/dev/null
10871   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10872   exec 5>>config.log
10873   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10874   # would make configure fail if this is the last instruction.
10875   $ac_cs_success || { (exit 1); exit 1; }
10876 fi
10877 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10878   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10879 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10880 fi
10881