tizen beta release
[external/psmisc.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for psmisc 22.6.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME='psmisc'
574 PACKAGE_TARNAME='psmisc'
575 PACKAGE_VERSION='22.6'
576 PACKAGE_STRING='psmisc 22.6'
577 PACKAGE_BUGREPORT=''
578
579 ac_unique_file="src/comm.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 gt_needs=
617 ac_subst_vars='SHELL
618 PATH_SEPARATOR
619 PACKAGE_NAME
620 PACKAGE_TARNAME
621 PACKAGE_VERSION
622 PACKAGE_STRING
623 PACKAGE_BUGREPORT
624 exec_prefix
625 prefix
626 program_transform_name
627 bindir
628 sbindir
629 libexecdir
630 datarootdir
631 datadir
632 sysconfdir
633 sharedstatedir
634 localstatedir
635 includedir
636 oldincludedir
637 docdir
638 infodir
639 htmldir
640 dvidir
641 pdfdir
642 psdir
643 libdir
644 localedir
645 mandir
646 DEFS
647 ECHO_C
648 ECHO_N
649 ECHO_T
650 LIBS
651 build_alias
652 host_alias
653 target_alias
654 INSTALL_PROGRAM
655 INSTALL_SCRIPT
656 INSTALL_DATA
657 am__isrc
658 CYGPATH_W
659 PACKAGE
660 VERSION
661 ACLOCAL
662 AUTOCONF
663 AUTOMAKE
664 AUTOHEADER
665 MAKEINFO
666 install_sh
667 STRIP
668 INSTALL_STRIP_PROGRAM
669 mkdir_p
670 AWK
671 SET_MAKE
672 am__leading_dot
673 AMTAR
674 am__tar
675 am__untar
676 CXX
677 CXXFLAGS
678 LDFLAGS
679 CPPFLAGS
680 ac_ct_CXX
681 EXEEXT
682 OBJEXT
683 DEPDIR
684 am__include
685 am__quote
686 AMDEP_TRUE
687 AMDEP_FALSE
688 AMDEPBACKSLASH
689 CXXDEPMODE
690 am__fastdepCXX_TRUE
691 am__fastdepCXX_FALSE
692 CC
693 CFLAGS
694 ac_ct_CC
695 CCDEPMODE
696 am__fastdepCC_TRUE
697 am__fastdepCC_FALSE
698 LN_S
699 WITH_SELINUX
700 SELINUX_LIB
701 WITH_IPV6
702 TERMCAP_LIB
703 CPP
704 GREP
705 EGREP
706 WANT_PEEKFD_I386_TRUE
707 WANT_PEEKFD_I386_FALSE
708 WANT_PEEKFD_X86_64_TRUE
709 WANT_PEEKFD_X86_64_FALSE
710 WANT_PEEKFD_PPC_TRUE
711 WANT_PEEKFD_PPC_FALSE
712 USE_NLS
713 MSGFMT
714 GMSGFMT
715 MSGFMT_015
716 GMSGFMT_015
717 XGETTEXT
718 XGETTEXT_015
719 MSGMERGE
720 build
721 build_cpu
722 build_vendor
723 build_os
724 host
725 host_cpu
726 host_vendor
727 host_os
728 INTL_MACOSX_LIBS
729 LIBICONV
730 LTLIBICONV
731 INTLLIBS
732 LIBINTL
733 LTLIBINTL
734 POSUB
735 LIBOBJS
736 LTLIBOBJS'
737 ac_subst_files=''
738       ac_precious_vars='build_alias
739 host_alias
740 target_alias
741 CXX
742 CXXFLAGS
743 LDFLAGS
744 LIBS
745 CPPFLAGS
746 CCC
747 CC
748 CFLAGS
749 CPP'
750
751
752 # Initialize some variables set by options.
753 ac_init_help=
754 ac_init_version=false
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
757 cache_file=/dev/null
758 exec_prefix=NONE
759 no_create=
760 no_recursion=
761 prefix=NONE
762 program_prefix=NONE
763 program_suffix=NONE
764 program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 verbose=
769 x_includes=NONE
770 x_libraries=NONE
771
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir='${datarootdir}/info'
790 htmldir='${docdir}'
791 dvidir='${docdir}'
792 pdfdir='${docdir}'
793 psdir='${docdir}'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
797
798 ac_prev=
799 ac_dashdash=
800 for ac_option
801 do
802   # If the previous option needs an argument, assign it.
803   if test -n "$ac_prev"; then
804     eval $ac_prev=\$ac_option
805     ac_prev=
806     continue
807   fi
808
809   case $ac_option in
810   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811   *)    ac_optarg=yes ;;
812   esac
813
814   # Accept the important Cygnus configure options, so we can diagnose typos.
815
816   case $ac_dashdash$ac_option in
817   --)
818     ac_dashdash=yes ;;
819
820   -bindir | --bindir | --bindi | --bind | --bin | --bi)
821     ac_prev=bindir ;;
822   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
823     bindir=$ac_optarg ;;
824
825   -build | --build | --buil | --bui | --bu)
826     ac_prev=build_alias ;;
827   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
828     build_alias=$ac_optarg ;;
829
830   -cache-file | --cache-file | --cache-fil | --cache-fi \
831   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
832     ac_prev=cache_file ;;
833   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
834   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
835     cache_file=$ac_optarg ;;
836
837   --config-cache | -C)
838     cache_file=config.cache ;;
839
840   -datadir | --datadir | --datadi | --datad)
841     ac_prev=datadir ;;
842   -datadir=* | --datadir=* | --datadi=* | --datad=*)
843     datadir=$ac_optarg ;;
844
845   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
846   | --dataroo | --dataro | --datar)
847     ac_prev=datarootdir ;;
848   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
849   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
850     datarootdir=$ac_optarg ;;
851
852   -disable-* | --disable-*)
853     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854     # Reject names that are not valid shell variable names.
855     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
856       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
857    { (exit 1); exit 1; }; }
858     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
859     eval enable_$ac_feature=no ;;
860
861   -docdir | --docdir | --docdi | --doc | --do)
862     ac_prev=docdir ;;
863   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
864     docdir=$ac_optarg ;;
865
866   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867     ac_prev=dvidir ;;
868   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
869     dvidir=$ac_optarg ;;
870
871   -enable-* | --enable-*)
872     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873     # Reject names that are not valid shell variable names.
874     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
875       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
876    { (exit 1); exit 1; }; }
877     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
878     eval enable_$ac_feature=\$ac_optarg ;;
879
880   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
881   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
882   | --exec | --exe | --ex)
883     ac_prev=exec_prefix ;;
884   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
885   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
886   | --exec=* | --exe=* | --ex=*)
887     exec_prefix=$ac_optarg ;;
888
889   -gas | --gas | --ga | --g)
890     # Obsolete; use --with-gas.
891     with_gas=yes ;;
892
893   -help | --help | --hel | --he | -h)
894     ac_init_help=long ;;
895   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
896     ac_init_help=recursive ;;
897   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
898     ac_init_help=short ;;
899
900   -host | --host | --hos | --ho)
901     ac_prev=host_alias ;;
902   -host=* | --host=* | --hos=* | --ho=*)
903     host_alias=$ac_optarg ;;
904
905   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906     ac_prev=htmldir ;;
907   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908   | --ht=*)
909     htmldir=$ac_optarg ;;
910
911   -includedir | --includedir | --includedi | --included | --include \
912   | --includ | --inclu | --incl | --inc)
913     ac_prev=includedir ;;
914   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
915   | --includ=* | --inclu=* | --incl=* | --inc=*)
916     includedir=$ac_optarg ;;
917
918   -infodir | --infodir | --infodi | --infod | --info | --inf)
919     ac_prev=infodir ;;
920   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
921     infodir=$ac_optarg ;;
922
923   -libdir | --libdir | --libdi | --libd)
924     ac_prev=libdir ;;
925   -libdir=* | --libdir=* | --libdi=* | --libd=*)
926     libdir=$ac_optarg ;;
927
928   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
929   | --libexe | --libex | --libe)
930     ac_prev=libexecdir ;;
931   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
932   | --libexe=* | --libex=* | --libe=*)
933     libexecdir=$ac_optarg ;;
934
935   -localedir | --localedir | --localedi | --localed | --locale)
936     ac_prev=localedir ;;
937   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
938     localedir=$ac_optarg ;;
939
940   -localstatedir | --localstatedir | --localstatedi | --localstated \
941   | --localstate | --localstat | --localsta | --localst | --locals)
942     ac_prev=localstatedir ;;
943   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
944   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
945     localstatedir=$ac_optarg ;;
946
947   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948     ac_prev=mandir ;;
949   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
950     mandir=$ac_optarg ;;
951
952   -nfp | --nfp | --nf)
953     # Obsolete; use --without-fp.
954     with_fp=no ;;
955
956   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
957   | --no-cr | --no-c | -n)
958     no_create=yes ;;
959
960   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
961   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
962     no_recursion=yes ;;
963
964   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
965   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
966   | --oldin | --oldi | --old | --ol | --o)
967     ac_prev=oldincludedir ;;
968   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
969   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
970   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
971     oldincludedir=$ac_optarg ;;
972
973   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974     ac_prev=prefix ;;
975   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
976     prefix=$ac_optarg ;;
977
978   -program-prefix | --program-prefix | --program-prefi | --program-pref \
979   | --program-pre | --program-pr | --program-p)
980     ac_prev=program_prefix ;;
981   -program-prefix=* | --program-prefix=* | --program-prefi=* \
982   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
983     program_prefix=$ac_optarg ;;
984
985   -program-suffix | --program-suffix | --program-suffi | --program-suff \
986   | --program-suf | --program-su | --program-s)
987     ac_prev=program_suffix ;;
988   -program-suffix=* | --program-suffix=* | --program-suffi=* \
989   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
990     program_suffix=$ac_optarg ;;
991
992   -program-transform-name | --program-transform-name \
993   | --program-transform-nam | --program-transform-na \
994   | --program-transform-n | --program-transform- \
995   | --program-transform | --program-transfor \
996   | --program-transfo | --program-transf \
997   | --program-trans | --program-tran \
998   | --progr-tra | --program-tr | --program-t)
999     ac_prev=program_transform_name ;;
1000   -program-transform-name=* | --program-transform-name=* \
1001   | --program-transform-nam=* | --program-transform-na=* \
1002   | --program-transform-n=* | --program-transform-=* \
1003   | --program-transform=* | --program-transfor=* \
1004   | --program-transfo=* | --program-transf=* \
1005   | --program-trans=* | --program-tran=* \
1006   | --progr-tra=* | --program-tr=* | --program-t=*)
1007     program_transform_name=$ac_optarg ;;
1008
1009   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010     ac_prev=pdfdir ;;
1011   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1012     pdfdir=$ac_optarg ;;
1013
1014   -psdir | --psdir | --psdi | --psd | --ps)
1015     ac_prev=psdir ;;
1016   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1017     psdir=$ac_optarg ;;
1018
1019   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020   | -silent | --silent | --silen | --sile | --sil)
1021     silent=yes ;;
1022
1023   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1024     ac_prev=sbindir ;;
1025   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1026   | --sbi=* | --sb=*)
1027     sbindir=$ac_optarg ;;
1028
1029   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1030   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1031   | --sharedst | --shareds | --shared | --share | --shar \
1032   | --sha | --sh)
1033     ac_prev=sharedstatedir ;;
1034   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1035   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1036   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1037   | --sha=* | --sh=*)
1038     sharedstatedir=$ac_optarg ;;
1039
1040   -site | --site | --sit)
1041     ac_prev=site ;;
1042   -site=* | --site=* | --sit=*)
1043     site=$ac_optarg ;;
1044
1045   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1046     ac_prev=srcdir ;;
1047   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1048     srcdir=$ac_optarg ;;
1049
1050   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1051   | --syscon | --sysco | --sysc | --sys | --sy)
1052     ac_prev=sysconfdir ;;
1053   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1054   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1055     sysconfdir=$ac_optarg ;;
1056
1057   -target | --target | --targe | --targ | --tar | --ta | --t)
1058     ac_prev=target_alias ;;
1059   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1060     target_alias=$ac_optarg ;;
1061
1062   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1063     verbose=yes ;;
1064
1065   -version | --version | --versio | --versi | --vers | -V)
1066     ac_init_version=: ;;
1067
1068   -with-* | --with-*)
1069     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070     # Reject names that are not valid shell variable names.
1071     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072       { echo "$as_me: error: invalid package name: $ac_package" >&2
1073    { (exit 1); exit 1; }; }
1074     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075     eval with_$ac_package=\$ac_optarg ;;
1076
1077   -without-* | --without-*)
1078     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079     # Reject names that are not valid shell variable names.
1080     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1081       { echo "$as_me: error: invalid package name: $ac_package" >&2
1082    { (exit 1); exit 1; }; }
1083     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1084     eval with_$ac_package=no ;;
1085
1086   --x)
1087     # Obsolete; use --with-x.
1088     with_x=yes ;;
1089
1090   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1091   | --x-incl | --x-inc | --x-in | --x-i)
1092     ac_prev=x_includes ;;
1093   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1094   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1095     x_includes=$ac_optarg ;;
1096
1097   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1098   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1099     ac_prev=x_libraries ;;
1100   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1101   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1102     x_libraries=$ac_optarg ;;
1103
1104   -*) { echo "$as_me: error: unrecognized option: $ac_option
1105 Try \`$0 --help' for more information." >&2
1106    { (exit 1); exit 1; }; }
1107     ;;
1108
1109   *=*)
1110     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1111     # Reject names that are not valid shell variable names.
1112     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1113       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1114    { (exit 1); exit 1; }; }
1115     eval $ac_envvar=\$ac_optarg
1116     export $ac_envvar ;;
1117
1118   *)
1119     # FIXME: should be removed in autoconf 3.0.
1120     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1122       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1124     ;;
1125
1126   esac
1127 done
1128
1129 if test -n "$ac_prev"; then
1130   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1131   { echo "$as_me: error: missing argument to $ac_option" >&2
1132    { (exit 1); exit 1; }; }
1133 fi
1134
1135 # Be sure to have absolute directory names.
1136 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137                 datadir sysconfdir sharedstatedir localstatedir includedir \
1138                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139                 libdir localedir mandir
1140 do
1141   eval ac_val=\$$ac_var
1142   case $ac_val in
1143     [\\/$]* | ?:[\\/]* )  continue;;
1144     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1145   esac
1146   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1147    { (exit 1); exit 1; }; }
1148 done
1149
1150 # There might be people who depend on the old broken behavior: `$host'
1151 # used to hold the argument of --host etc.
1152 # FIXME: To remove some day.
1153 build=$build_alias
1154 host=$host_alias
1155 target=$target_alias
1156
1157 # FIXME: To remove some day.
1158 if test "x$host_alias" != x; then
1159   if test "x$build_alias" = x; then
1160     cross_compiling=maybe
1161     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1162     If a cross compiler is detected then cross compile mode will be used." >&2
1163   elif test "x$build_alias" != "x$host_alias"; then
1164     cross_compiling=yes
1165   fi
1166 fi
1167
1168 ac_tool_prefix=
1169 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170
1171 test "$silent" = yes && exec 6>/dev/null
1172
1173
1174 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1175 ac_ls_di=`ls -di .` &&
1176 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1177   { echo "$as_me: error: Working directory cannot be determined" >&2
1178    { (exit 1); exit 1; }; }
1179 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1180   { echo "$as_me: error: pwd does not report name of working directory" >&2
1181    { (exit 1); exit 1; }; }
1182
1183
1184 # Find the source files, if location was not specified.
1185 if test -z "$srcdir"; then
1186   ac_srcdir_defaulted=yes
1187   # Try the directory containing this script, then the parent directory.
1188   ac_confdir=`$as_dirname -- "$0" ||
1189 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190          X"$0" : 'X\(//\)[^/]' \| \
1191          X"$0" : 'X\(//\)$' \| \
1192          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 echo X"$0" |
1194     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1195             s//\1/
1196             q
1197           }
1198           /^X\(\/\/\)[^/].*/{
1199             s//\1/
1200             q
1201           }
1202           /^X\(\/\/\)$/{
1203             s//\1/
1204             q
1205           }
1206           /^X\(\/\).*/{
1207             s//\1/
1208             q
1209           }
1210           s/.*/./; q'`
1211   srcdir=$ac_confdir
1212   if test ! -r "$srcdir/$ac_unique_file"; then
1213     srcdir=..
1214   fi
1215 else
1216   ac_srcdir_defaulted=no
1217 fi
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1220   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1221    { (exit 1); exit 1; }; }
1222 fi
1223 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 ac_abs_confdir=`(
1225         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1226    { (exit 1); exit 1; }; }
1227         pwd)`
1228 # When building in place, set srcdir=.
1229 if test "$ac_abs_confdir" = "$ac_pwd"; then
1230   srcdir=.
1231 fi
1232 # Remove unnecessary trailing slashes from srcdir.
1233 # Double slashes in file names in object file debugging info
1234 # mess up M-x gdb in Emacs.
1235 case $srcdir in
1236 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 esac
1238 for ac_var in $ac_precious_vars; do
1239   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1240   eval ac_env_${ac_var}_value=\$${ac_var}
1241   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1242   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1243 done
1244
1245 #
1246 # Report the --help message.
1247 #
1248 if test "$ac_init_help" = "long"; then
1249   # Omit some internal or obsolete options to make the list less imposing.
1250   # This message is too long to be a string in the A/UX 3.1 sh.
1251   cat <<_ACEOF
1252 \`configure' configures psmisc 22.6 to adapt to many kinds of systems.
1253
1254 Usage: $0 [OPTION]... [VAR=VALUE]...
1255
1256 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257 VAR=VALUE.  See below for descriptions of some of the useful variables.
1258
1259 Defaults for the options are specified in brackets.
1260
1261 Configuration:
1262   -h, --help              display this help and exit
1263       --help=short        display options specific to this package
1264       --help=recursive    display the short help of all the included packages
1265   -V, --version           display version information and exit
1266   -q, --quiet, --silent   do not print \`checking...' messages
1267       --cache-file=FILE   cache test results in FILE [disabled]
1268   -C, --config-cache      alias for \`--cache-file=config.cache'
1269   -n, --no-create         do not create output files
1270       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1271
1272 Installation directories:
1273   --prefix=PREFIX         install architecture-independent files in PREFIX
1274                           [$ac_default_prefix]
1275   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1276                           [PREFIX]
1277
1278 By default, \`make install' will install all the files in
1279 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1280 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281 for instance \`--prefix=\$HOME'.
1282
1283 For better control, use the options below.
1284
1285 Fine tuning of the installation directories:
1286   --bindir=DIR           user executables [EPREFIX/bin]
1287   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1288   --libexecdir=DIR       program executables [EPREFIX/libexec]
1289   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1290   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1291   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1292   --libdir=DIR           object code libraries [EPREFIX/lib]
1293   --includedir=DIR       C header files [PREFIX/include]
1294   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1295   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1296   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1297   --infodir=DIR          info documentation [DATAROOTDIR/info]
1298   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1299   --mandir=DIR           man documentation [DATAROOTDIR/man]
1300   --docdir=DIR           documentation root [DATAROOTDIR/doc/psmisc]
1301   --htmldir=DIR          html documentation [DOCDIR]
1302   --dvidir=DIR           dvi documentation [DOCDIR]
1303   --pdfdir=DIR           pdf documentation [DOCDIR]
1304   --psdir=DIR            ps documentation [DOCDIR]
1305 _ACEOF
1306
1307   cat <<\_ACEOF
1308
1309 Program names:
1310   --program-prefix=PREFIX            prepend PREFIX to installed program names
1311   --program-suffix=SUFFIX            append SUFFIX to installed program names
1312   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1313
1314 System types:
1315   --build=BUILD     configure for building on BUILD [guessed]
1316   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1317 _ACEOF
1318 fi
1319
1320 if test -n "$ac_init_help"; then
1321   case $ac_init_help in
1322      short | recursive ) echo "Configuration of psmisc 22.6:";;
1323    esac
1324   cat <<\_ACEOF
1325
1326 Optional Features:
1327   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1328   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1329   --disable-dependency-tracking  speeds up one-time build
1330   --enable-dependency-tracking   do not reject slow dependency extractors
1331   --enable-selinux        Enable Security-Enhanced Linux features
1332   --disable-ipv6          Disable IPv6 checks (for uClibc)
1333   --disable-nls           do not use Native Language Support
1334   --disable-rpath         do not hardcode runtime library paths
1335   --disable-largefile     omit support for large files
1336
1337 Optional Packages:
1338   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1339   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1340   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1341   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1342   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1343   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1344   --without-libintl-prefix     don't search for libintl in includedir and libdir
1345
1346 Some influential environment variables:
1347   CXX         C++ compiler command
1348   CXXFLAGS    C++ compiler flags
1349   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1350               nonstandard directory <lib dir>
1351   LIBS        libraries to pass to the linker, e.g. -l<library>
1352   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1353               you have headers in a nonstandard directory <include dir>
1354   CC          C compiler command
1355   CFLAGS      C compiler flags
1356   CPP         C preprocessor
1357
1358 Use these variables to override the choices made by `configure' or to help
1359 it to find libraries and programs with nonstandard names/locations.
1360
1361 _ACEOF
1362 ac_status=$?
1363 fi
1364
1365 if test "$ac_init_help" = "recursive"; then
1366   # If there are subdirs, report their specific --help.
1367   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1368     test -d "$ac_dir" || continue
1369     ac_builddir=.
1370
1371 case "$ac_dir" in
1372 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1373 *)
1374   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1375   # A ".." for each directory in $ac_dir_suffix.
1376   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1377   case $ac_top_builddir_sub in
1378   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1380   esac ;;
1381 esac
1382 ac_abs_top_builddir=$ac_pwd
1383 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1384 # for backward compatibility:
1385 ac_top_builddir=$ac_top_build_prefix
1386
1387 case $srcdir in
1388   .)  # We are building in place.
1389     ac_srcdir=.
1390     ac_top_srcdir=$ac_top_builddir_sub
1391     ac_abs_top_srcdir=$ac_pwd ;;
1392   [\\/]* | ?:[\\/]* )  # Absolute name.
1393     ac_srcdir=$srcdir$ac_dir_suffix;
1394     ac_top_srcdir=$srcdir
1395     ac_abs_top_srcdir=$srcdir ;;
1396   *) # Relative name.
1397     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1398     ac_top_srcdir=$ac_top_build_prefix$srcdir
1399     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1400 esac
1401 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1402
1403     cd "$ac_dir" || { ac_status=$?; continue; }
1404     # Check for guested configure.
1405     if test -f "$ac_srcdir/configure.gnu"; then
1406       echo &&
1407       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1408     elif test -f "$ac_srcdir/configure"; then
1409       echo &&
1410       $SHELL "$ac_srcdir/configure" --help=recursive
1411     else
1412       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1413     fi || ac_status=$?
1414     cd "$ac_pwd" || { ac_status=$?; break; }
1415   done
1416 fi
1417
1418 test -n "$ac_init_help" && exit $ac_status
1419 if $ac_init_version; then
1420   cat <<\_ACEOF
1421 psmisc configure 22.6
1422 generated by GNU Autoconf 2.61
1423
1424 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1425 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1426 This configure script is free software; the Free Software Foundation
1427 gives unlimited permission to copy, distribute and modify it.
1428 _ACEOF
1429   exit
1430 fi
1431 cat >config.log <<_ACEOF
1432 This file contains any messages produced by compilers while
1433 running configure, to aid debugging if configure makes a mistake.
1434
1435 It was created by psmisc $as_me 22.6, which was
1436 generated by GNU Autoconf 2.61.  Invocation command line was
1437
1438   $ $0 $@
1439
1440 _ACEOF
1441 exec 5>>config.log
1442 {
1443 cat <<_ASUNAME
1444 ## --------- ##
1445 ## Platform. ##
1446 ## --------- ##
1447
1448 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1449 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1450 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1451 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1452 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1453
1454 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1455 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1456
1457 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1458 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1459 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1460 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1461 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1462 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1463 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1464
1465 _ASUNAME
1466
1467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1468 for as_dir in $PATH
1469 do
1470   IFS=$as_save_IFS
1471   test -z "$as_dir" && as_dir=.
1472   echo "PATH: $as_dir"
1473 done
1474 IFS=$as_save_IFS
1475
1476 } >&5
1477
1478 cat >&5 <<_ACEOF
1479
1480
1481 ## ----------- ##
1482 ## Core tests. ##
1483 ## ----------- ##
1484
1485 _ACEOF
1486
1487
1488 # Keep a trace of the command line.
1489 # Strip out --no-create and --no-recursion so they do not pile up.
1490 # Strip out --silent because we don't want to record it for future runs.
1491 # Also quote any args containing shell meta-characters.
1492 # Make two passes to allow for proper duplicate-argument suppression.
1493 ac_configure_args=
1494 ac_configure_args0=
1495 ac_configure_args1=
1496 ac_must_keep_next=false
1497 for ac_pass in 1 2
1498 do
1499   for ac_arg
1500   do
1501     case $ac_arg in
1502     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1503     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1504     | -silent | --silent | --silen | --sile | --sil)
1505       continue ;;
1506     *\'*)
1507       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1508     esac
1509     case $ac_pass in
1510     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1511     2)
1512       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1513       if test $ac_must_keep_next = true; then
1514         ac_must_keep_next=false # Got value, back to normal.
1515       else
1516         case $ac_arg in
1517           *=* | --config-cache | -C | -disable-* | --disable-* \
1518           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1519           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1520           | -with-* | --with-* | -without-* | --without-* | --x)
1521             case "$ac_configure_args0 " in
1522               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1523             esac
1524             ;;
1525           -* ) ac_must_keep_next=true ;;
1526         esac
1527       fi
1528       ac_configure_args="$ac_configure_args '$ac_arg'"
1529       ;;
1530     esac
1531   done
1532 done
1533 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1534 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1535
1536 # When interrupted or exit'd, cleanup temporary files, and complete
1537 # config.log.  We remove comments because anyway the quotes in there
1538 # would cause problems or look ugly.
1539 # WARNING: Use '\'' to represent an apostrophe within the trap.
1540 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1541 trap 'exit_status=$?
1542   # Save into config.log some information that might help in debugging.
1543   {
1544     echo
1545
1546     cat <<\_ASBOX
1547 ## ---------------- ##
1548 ## Cache variables. ##
1549 ## ---------------- ##
1550 _ASBOX
1551     echo
1552     # The following way of writing the cache mishandles newlines in values,
1553 (
1554   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1555     eval ac_val=\$$ac_var
1556     case $ac_val in #(
1557     *${as_nl}*)
1558       case $ac_var in #(
1559       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1560 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1561       esac
1562       case $ac_var in #(
1563       _ | IFS | as_nl) ;; #(
1564       *) $as_unset $ac_var ;;
1565       esac ;;
1566     esac
1567   done
1568   (set) 2>&1 |
1569     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1570     *${as_nl}ac_space=\ *)
1571       sed -n \
1572         "s/'\''/'\''\\\\'\'''\''/g;
1573           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1574       ;; #(
1575     *)
1576       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1577       ;;
1578     esac |
1579     sort
1580 )
1581     echo
1582
1583     cat <<\_ASBOX
1584 ## ----------------- ##
1585 ## Output variables. ##
1586 ## ----------------- ##
1587 _ASBOX
1588     echo
1589     for ac_var in $ac_subst_vars
1590     do
1591       eval ac_val=\$$ac_var
1592       case $ac_val in
1593       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1594       esac
1595       echo "$ac_var='\''$ac_val'\''"
1596     done | sort
1597     echo
1598
1599     if test -n "$ac_subst_files"; then
1600       cat <<\_ASBOX
1601 ## ------------------- ##
1602 ## File substitutions. ##
1603 ## ------------------- ##
1604 _ASBOX
1605       echo
1606       for ac_var in $ac_subst_files
1607       do
1608         eval ac_val=\$$ac_var
1609         case $ac_val in
1610         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1611         esac
1612         echo "$ac_var='\''$ac_val'\''"
1613       done | sort
1614       echo
1615     fi
1616
1617     if test -s confdefs.h; then
1618       cat <<\_ASBOX
1619 ## ----------- ##
1620 ## confdefs.h. ##
1621 ## ----------- ##
1622 _ASBOX
1623       echo
1624       cat confdefs.h
1625       echo
1626     fi
1627     test "$ac_signal" != 0 &&
1628       echo "$as_me: caught signal $ac_signal"
1629     echo "$as_me: exit $exit_status"
1630   } >&5
1631   rm -f core *.core core.conftest.* &&
1632     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1633     exit $exit_status
1634 ' 0
1635 for ac_signal in 1 2 13 15; do
1636   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1637 done
1638 ac_signal=0
1639
1640 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1641 rm -f -r conftest* confdefs.h
1642
1643 # Predefined preprocessor variables.
1644
1645 cat >>confdefs.h <<_ACEOF
1646 #define PACKAGE_NAME "$PACKAGE_NAME"
1647 _ACEOF
1648
1649
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1652 _ACEOF
1653
1654
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1657 _ACEOF
1658
1659
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_STRING "$PACKAGE_STRING"
1662 _ACEOF
1663
1664
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1667 _ACEOF
1668
1669
1670 # Let the site file select an alternate cache file if it wants to.
1671 # Prefer explicitly selected file to automatically selected ones.
1672 if test -n "$CONFIG_SITE"; then
1673   set x "$CONFIG_SITE"
1674 elif test "x$prefix" != xNONE; then
1675   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1676 else
1677   set x "$ac_default_prefix/share/config.site" \
1678         "$ac_default_prefix/etc/config.site"
1679 fi
1680 shift
1681 for ac_site_file
1682 do
1683   if test -r "$ac_site_file"; then
1684     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1685 echo "$as_me: loading site script $ac_site_file" >&6;}
1686     sed 's/^/| /' "$ac_site_file" >&5
1687     . "$ac_site_file"
1688   fi
1689 done
1690
1691 if test -r "$cache_file"; then
1692   # Some versions of bash will fail to source /dev/null (special
1693   # files actually), so we avoid doing that.
1694   if test -f "$cache_file"; then
1695     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1696 echo "$as_me: loading cache $cache_file" >&6;}
1697     case $cache_file in
1698       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1699       *)                      . "./$cache_file";;
1700     esac
1701   fi
1702 else
1703   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1704 echo "$as_me: creating cache $cache_file" >&6;}
1705   >$cache_file
1706 fi
1707
1708 gt_needs="$gt_needs "
1709 # Check that the precious variables saved in the cache have kept the same
1710 # value.
1711 ac_cache_corrupted=false
1712 for ac_var in $ac_precious_vars; do
1713   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1714   eval ac_new_set=\$ac_env_${ac_var}_set
1715   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1716   eval ac_new_val=\$ac_env_${ac_var}_value
1717   case $ac_old_set,$ac_new_set in
1718     set,)
1719       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1720 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1721       ac_cache_corrupted=: ;;
1722     ,set)
1723       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1724 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1725       ac_cache_corrupted=: ;;
1726     ,);;
1727     *)
1728       if test "x$ac_old_val" != "x$ac_new_val"; then
1729         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1730 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1731         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1732 echo "$as_me:   former value:  $ac_old_val" >&2;}
1733         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1734 echo "$as_me:   current value: $ac_new_val" >&2;}
1735         ac_cache_corrupted=:
1736       fi;;
1737   esac
1738   # Pass precious variables to config.status.
1739   if test "$ac_new_set" = set; then
1740     case $ac_new_val in
1741     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1742     *) ac_arg=$ac_var=$ac_new_val ;;
1743     esac
1744     case " $ac_configure_args " in
1745       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1746       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1747     esac
1748   fi
1749 done
1750 if $ac_cache_corrupted; then
1751   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1752 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1753   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1754 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1755    { (exit 1); exit 1; }; }
1756 fi
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782 ac_ext=c
1783 ac_cpp='$CPP $CPPFLAGS'
1784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1787
1788
1789
1790 ac_config_headers="$ac_config_headers config.h"
1791
1792 ac_aux_dir=
1793 for ac_dir in config "$srcdir"/config; do
1794   if test -f "$ac_dir/install-sh"; then
1795     ac_aux_dir=$ac_dir
1796     ac_install_sh="$ac_aux_dir/install-sh -c"
1797     break
1798   elif test -f "$ac_dir/install.sh"; then
1799     ac_aux_dir=$ac_dir
1800     ac_install_sh="$ac_aux_dir/install.sh -c"
1801     break
1802   elif test -f "$ac_dir/shtool"; then
1803     ac_aux_dir=$ac_dir
1804     ac_install_sh="$ac_aux_dir/shtool install -c"
1805     break
1806   fi
1807 done
1808 if test -z "$ac_aux_dir"; then
1809   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1810 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1811    { (exit 1); exit 1; }; }
1812 fi
1813
1814 # These three variables are undocumented and unsupported,
1815 # and are intended to be withdrawn in a future Autoconf release.
1816 # They can cause serious problems if a builder's source tree is in a directory
1817 # whose full name contains unusual characters.
1818 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1819 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1820 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1821
1822
1823 am__api_version='1.10'
1824
1825 # Find a good install program.  We prefer a C program (faster),
1826 # so one script is as good as another.  But avoid the broken or
1827 # incompatible versions:
1828 # SysV /etc/install, /usr/sbin/install
1829 # SunOS /usr/etc/install
1830 # IRIX /sbin/install
1831 # AIX /bin/install
1832 # AmigaOS /C/install, which installs bootblocks on floppy discs
1833 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1834 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1835 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1836 # OS/2's system install, which has a completely different semantic
1837 # ./install, which can be erroneously created by make from ./install.sh.
1838 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1839 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1840 if test -z "$INSTALL"; then
1841 if test "${ac_cv_path_install+set}" = set; then
1842   echo $ECHO_N "(cached) $ECHO_C" >&6
1843 else
1844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845 for as_dir in $PATH
1846 do
1847   IFS=$as_save_IFS
1848   test -z "$as_dir" && as_dir=.
1849   # Account for people who put trailing slashes in PATH elements.
1850 case $as_dir/ in
1851   ./ | .// | /cC/* | \
1852   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1853   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1854   /usr/ucb/* ) ;;
1855   *)
1856     # OSF1 and SCO ODT 3.0 have their own names for install.
1857     # Don't use installbsd from OSF since it installs stuff as root
1858     # by default.
1859     for ac_prog in ginstall scoinst install; do
1860       for ac_exec_ext in '' $ac_executable_extensions; do
1861         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1862           if test $ac_prog = install &&
1863             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1864             # AIX install.  It has an incompatible calling convention.
1865             :
1866           elif test $ac_prog = install &&
1867             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1868             # program-specific install script used by HP pwplus--don't use.
1869             :
1870           else
1871             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1872             break 3
1873           fi
1874         fi
1875       done
1876     done
1877     ;;
1878 esac
1879 done
1880 IFS=$as_save_IFS
1881
1882
1883 fi
1884   if test "${ac_cv_path_install+set}" = set; then
1885     INSTALL=$ac_cv_path_install
1886   else
1887     # As a last resort, use the slow shell script.  Don't cache a
1888     # value for INSTALL within a source directory, because that will
1889     # break other packages using the cache if that directory is
1890     # removed, or if the value is a relative name.
1891     INSTALL=$ac_install_sh
1892   fi
1893 fi
1894 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1895 echo "${ECHO_T}$INSTALL" >&6; }
1896
1897 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1898 # It thinks the first close brace ends the variable substitution.
1899 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1900
1901 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1902
1903 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1904
1905 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1906 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1907 # Just in case
1908 sleep 1
1909 echo timestamp > conftest.file
1910 # Do `set' in a subshell so we don't clobber the current shell's
1911 # arguments.  Must try -L first in case configure is actually a
1912 # symlink; some systems play weird games with the mod time of symlinks
1913 # (eg FreeBSD returns the mod time of the symlink's containing
1914 # directory).
1915 if (
1916    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1917    if test "$*" = "X"; then
1918       # -L didn't work.
1919       set X `ls -t $srcdir/configure conftest.file`
1920    fi
1921    rm -f conftest.file
1922    if test "$*" != "X $srcdir/configure conftest.file" \
1923       && test "$*" != "X conftest.file $srcdir/configure"; then
1924
1925       # If neither matched, then we have a broken ls.  This can happen
1926       # if, for instance, CONFIG_SHELL is bash and it inherits a
1927       # broken ls alias from the environment.  This has actually
1928       # happened.  Such a system could not be considered "sane".
1929       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1930 alias in your environment" >&5
1931 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1932 alias in your environment" >&2;}
1933    { (exit 1); exit 1; }; }
1934    fi
1935
1936    test "$2" = conftest.file
1937    )
1938 then
1939    # Ok.
1940    :
1941 else
1942    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1943 Check your system clock" >&5
1944 echo "$as_me: error: newly created file is older than distributed files!
1945 Check your system clock" >&2;}
1946    { (exit 1); exit 1; }; }
1947 fi
1948 { echo "$as_me:$LINENO: result: yes" >&5
1949 echo "${ECHO_T}yes" >&6; }
1950 test "$program_prefix" != NONE &&
1951   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1952 # Use a double $ so make ignores it.
1953 test "$program_suffix" != NONE &&
1954   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1955 # Double any \ or $.  echo might interpret backslashes.
1956 # By default was `s,x,x', remove it if useless.
1957 cat <<\_ACEOF >conftest.sed
1958 s/[\\$]/&&/g;s/;s,x,x,$//
1959 _ACEOF
1960 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1961 rm -f conftest.sed
1962
1963 # expand $ac_aux_dir to an absolute path
1964 am_aux_dir=`cd $ac_aux_dir && pwd`
1965
1966 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1967 # Use eval to expand $SHELL
1968 if eval "$MISSING --run true"; then
1969   am_missing_run="$MISSING --run "
1970 else
1971   am_missing_run=
1972   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1973 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1974 fi
1975
1976 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1977 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1978 if test -z "$MKDIR_P"; then
1979   if test "${ac_cv_path_mkdir+set}" = set; then
1980   echo $ECHO_N "(cached) $ECHO_C" >&6
1981 else
1982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1984 do
1985   IFS=$as_save_IFS
1986   test -z "$as_dir" && as_dir=.
1987   for ac_prog in mkdir gmkdir; do
1988          for ac_exec_ext in '' $ac_executable_extensions; do
1989            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1990            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1991              'mkdir (GNU coreutils) '* | \
1992              'mkdir (coreutils) '* | \
1993              'mkdir (fileutils) '4.1*)
1994                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1995                break 3;;
1996            esac
1997          done
1998        done
1999 done
2000 IFS=$as_save_IFS
2001
2002 fi
2003
2004   if test "${ac_cv_path_mkdir+set}" = set; then
2005     MKDIR_P="$ac_cv_path_mkdir -p"
2006   else
2007     # As a last resort, use the slow shell script.  Don't cache a
2008     # value for MKDIR_P within a source directory, because that will
2009     # break other packages using the cache if that directory is
2010     # removed, or if the value is a relative name.
2011     test -d ./--version && rmdir ./--version
2012     MKDIR_P="$ac_install_sh -d"
2013   fi
2014 fi
2015 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2016 echo "${ECHO_T}$MKDIR_P" >&6; }
2017
2018 mkdir_p="$MKDIR_P"
2019 case $mkdir_p in
2020   [\\/$]* | ?:[\\/]*) ;;
2021   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2022 esac
2023
2024 for ac_prog in gawk mawk nawk awk
2025 do
2026   # Extract the first word of "$ac_prog", so it can be a program name with args.
2027 set dummy $ac_prog; ac_word=$2
2028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2030 if test "${ac_cv_prog_AWK+set}" = set; then
2031   echo $ECHO_N "(cached) $ECHO_C" >&6
2032 else
2033   if test -n "$AWK"; then
2034   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2035 else
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2038 do
2039   IFS=$as_save_IFS
2040   test -z "$as_dir" && as_dir=.
2041   for ac_exec_ext in '' $ac_executable_extensions; do
2042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2043     ac_cv_prog_AWK="$ac_prog"
2044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045     break 2
2046   fi
2047 done
2048 done
2049 IFS=$as_save_IFS
2050
2051 fi
2052 fi
2053 AWK=$ac_cv_prog_AWK
2054 if test -n "$AWK"; then
2055   { echo "$as_me:$LINENO: result: $AWK" >&5
2056 echo "${ECHO_T}$AWK" >&6; }
2057 else
2058   { echo "$as_me:$LINENO: result: no" >&5
2059 echo "${ECHO_T}no" >&6; }
2060 fi
2061
2062
2063   test -n "$AWK" && break
2064 done
2065
2066 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2067 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2068 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2069 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2070   echo $ECHO_N "(cached) $ECHO_C" >&6
2071 else
2072   cat >conftest.make <<\_ACEOF
2073 SHELL = /bin/sh
2074 all:
2075         @echo '@@@%%%=$(MAKE)=@@@%%%'
2076 _ACEOF
2077 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2078 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2079   *@@@%%%=?*=@@@%%%*)
2080     eval ac_cv_prog_make_${ac_make}_set=yes;;
2081   *)
2082     eval ac_cv_prog_make_${ac_make}_set=no;;
2083 esac
2084 rm -f conftest.make
2085 fi
2086 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2087   { echo "$as_me:$LINENO: result: yes" >&5
2088 echo "${ECHO_T}yes" >&6; }
2089   SET_MAKE=
2090 else
2091   { echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6; }
2093   SET_MAKE="MAKE=${MAKE-make}"
2094 fi
2095
2096 rm -rf .tst 2>/dev/null
2097 mkdir .tst 2>/dev/null
2098 if test -d .tst; then
2099   am__leading_dot=.
2100 else
2101   am__leading_dot=_
2102 fi
2103 rmdir .tst 2>/dev/null
2104
2105 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2106   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2107   # is not polluted with repeated "-I."
2108   am__isrc=' -I$(srcdir)'
2109   # test to see if srcdir already configured
2110   if test -f $srcdir/config.status; then
2111     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2112 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2113    { (exit 1); exit 1; }; }
2114   fi
2115 fi
2116
2117 # test whether we have cygpath
2118 if test -z "$CYGPATH_W"; then
2119   if (cygpath --version) >/dev/null 2>/dev/null; then
2120     CYGPATH_W='cygpath -w'
2121   else
2122     CYGPATH_W=echo
2123   fi
2124 fi
2125
2126
2127 # Define the identity of the package.
2128  PACKAGE='psmisc'
2129  VERSION='22.6'
2130
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE "$PACKAGE"
2134 _ACEOF
2135
2136
2137 cat >>confdefs.h <<_ACEOF
2138 #define VERSION "$VERSION"
2139 _ACEOF
2140
2141 # Some tools Automake needs.
2142
2143 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2144
2145
2146 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2147
2148
2149 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2150
2151
2152 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2153
2154
2155 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2156
2157 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2158
2159 # Installed binaries are usually stripped using `strip' when the user
2160 # run `make install-strip'.  However `strip' might not be the right
2161 # tool to use in cross-compilation environments, therefore Automake
2162 # will honor the `STRIP' environment variable to overrule this program.
2163 if test "$cross_compiling" != no; then
2164   if test -n "$ac_tool_prefix"; then
2165   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2166 set dummy ${ac_tool_prefix}strip; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_STRIP+set}" = set; then
2170   echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172   if test -n "$STRIP"; then
2173   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2174 else
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2177 do
2178   IFS=$as_save_IFS
2179   test -z "$as_dir" && as_dir=.
2180   for ac_exec_ext in '' $ac_executable_extensions; do
2181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184     break 2
2185   fi
2186 done
2187 done
2188 IFS=$as_save_IFS
2189
2190 fi
2191 fi
2192 STRIP=$ac_cv_prog_STRIP
2193 if test -n "$STRIP"; then
2194   { echo "$as_me:$LINENO: result: $STRIP" >&5
2195 echo "${ECHO_T}$STRIP" >&6; }
2196 else
2197   { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2199 fi
2200
2201
2202 fi
2203 if test -z "$ac_cv_prog_STRIP"; then
2204   ac_ct_STRIP=$STRIP
2205   # Extract the first word of "strip", so it can be a program name with args.
2206 set dummy strip; ac_word=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2210   echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212   if test -n "$ac_ct_STRIP"; then
2213   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2214 else
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2217 do
2218   IFS=$as_save_IFS
2219   test -z "$as_dir" && as_dir=.
2220   for ac_exec_ext in '' $ac_executable_extensions; do
2221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222     ac_cv_prog_ac_ct_STRIP="strip"
2223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224     break 2
2225   fi
2226 done
2227 done
2228 IFS=$as_save_IFS
2229
2230 fi
2231 fi
2232 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2233 if test -n "$ac_ct_STRIP"; then
2234   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2235 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2236 else
2237   { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2239 fi
2240
2241   if test "x$ac_ct_STRIP" = x; then
2242     STRIP=":"
2243   else
2244     case $cross_compiling:$ac_tool_warned in
2245 yes:)
2246 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2247 whose name does not start with the host triplet.  If you think this
2248 configuration is useful to you, please write to autoconf@gnu.org." >&5
2249 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2250 whose name does not start with the host triplet.  If you think this
2251 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2252 ac_tool_warned=yes ;;
2253 esac
2254     STRIP=$ac_ct_STRIP
2255   fi
2256 else
2257   STRIP="$ac_cv_prog_STRIP"
2258 fi
2259
2260 fi
2261 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2262
2263 # We need awk for the "check" target.  The system "awk" is bad on
2264 # some platforms.
2265 # Always define AMTAR for backward compatibility.
2266
2267 AMTAR=${AMTAR-"${am_missing_run}tar"}
2268
2269 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2270
2271
2272
2273
2274
2275
2276 ac_ext=cpp
2277 ac_cpp='$CXXCPP $CPPFLAGS'
2278 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2279 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2280 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2281 if test -z "$CXX"; then
2282   if test -n "$CCC"; then
2283     CXX=$CCC
2284   else
2285     if test -n "$ac_tool_prefix"; then
2286   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2287   do
2288     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2292 if test "${ac_cv_prog_CXX+set}" = set; then
2293   echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295   if test -n "$CXX"; then
2296   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2297 else
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2300 do
2301   IFS=$as_save_IFS
2302   test -z "$as_dir" && as_dir=.
2303   for ac_exec_ext in '' $ac_executable_extensions; do
2304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2305     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307     break 2
2308   fi
2309 done
2310 done
2311 IFS=$as_save_IFS
2312
2313 fi
2314 fi
2315 CXX=$ac_cv_prog_CXX
2316 if test -n "$CXX"; then
2317   { echo "$as_me:$LINENO: result: $CXX" >&5
2318 echo "${ECHO_T}$CXX" >&6; }
2319 else
2320   { echo "$as_me:$LINENO: result: no" >&5
2321 echo "${ECHO_T}no" >&6; }
2322 fi
2323
2324
2325     test -n "$CXX" && break
2326   done
2327 fi
2328 if test -z "$CXX"; then
2329   ac_ct_CXX=$CXX
2330   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2331 do
2332   # Extract the first word of "$ac_prog", so it can be a program name with args.
2333 set dummy $ac_prog; ac_word=$2
2334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2336 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2337   echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339   if test -n "$ac_ct_CXX"; then
2340   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345   IFS=$as_save_IFS
2346   test -z "$as_dir" && as_dir=.
2347   for ac_exec_ext in '' $ac_executable_extensions; do
2348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349     ac_cv_prog_ac_ct_CXX="$ac_prog"
2350     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351     break 2
2352   fi
2353 done
2354 done
2355 IFS=$as_save_IFS
2356
2357 fi
2358 fi
2359 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2360 if test -n "$ac_ct_CXX"; then
2361   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2362 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2363 else
2364   { echo "$as_me:$LINENO: result: no" >&5
2365 echo "${ECHO_T}no" >&6; }
2366 fi
2367
2368
2369   test -n "$ac_ct_CXX" && break
2370 done
2371
2372   if test "x$ac_ct_CXX" = x; then
2373     CXX="g++"
2374   else
2375     case $cross_compiling:$ac_tool_warned in
2376 yes:)
2377 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2378 whose name does not start with the host triplet.  If you think this
2379 configuration is useful to you, please write to autoconf@gnu.org." >&5
2380 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2381 whose name does not start with the host triplet.  If you think this
2382 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2383 ac_tool_warned=yes ;;
2384 esac
2385     CXX=$ac_ct_CXX
2386   fi
2387 fi
2388
2389   fi
2390 fi
2391 # Provide some information about the compiler.
2392 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2393 ac_compiler=`set X $ac_compile; echo $2`
2394 { (ac_try="$ac_compiler --version >&5"
2395 case "(($ac_try" in
2396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397   *) ac_try_echo=$ac_try;;
2398 esac
2399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2400   (eval "$ac_compiler --version >&5") 2>&5
2401   ac_status=$?
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); }
2404 { (ac_try="$ac_compiler -v >&5"
2405 case "(($ac_try" in
2406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407   *) ac_try_echo=$ac_try;;
2408 esac
2409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2410   (eval "$ac_compiler -v >&5") 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }
2414 { (ac_try="$ac_compiler -V >&5"
2415 case "(($ac_try" in
2416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417   *) ac_try_echo=$ac_try;;
2418 esac
2419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2420   (eval "$ac_compiler -V >&5") 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }
2424
2425 cat >conftest.$ac_ext <<_ACEOF
2426 /* confdefs.h.  */
2427 _ACEOF
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h.  */
2431
2432 int
2433 main ()
2434 {
2435
2436   ;
2437   return 0;
2438 }
2439 _ACEOF
2440 ac_clean_files_save=$ac_clean_files
2441 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2442 # Try to create an executable without -o first, disregard a.out.
2443 # It will help us diagnose broken compilers, and finding out an intuition
2444 # of exeext.
2445 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2446 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2447 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2448 #
2449 # List of possible output files, starting from the most likely.
2450 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2451 # only as a last resort.  b.out is created by i960 compilers.
2452 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2453 #
2454 # The IRIX 6 linker writes into existing files which may not be
2455 # executable, retaining their permissions.  Remove them first so a
2456 # subsequent execution test works.
2457 ac_rmfiles=
2458 for ac_file in $ac_files
2459 do
2460   case $ac_file in
2461     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2462     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2463   esac
2464 done
2465 rm -f $ac_rmfiles
2466
2467 if { (ac_try="$ac_link_default"
2468 case "(($ac_try" in
2469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470   *) ac_try_echo=$ac_try;;
2471 esac
2472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473   (eval "$ac_link_default") 2>&5
2474   ac_status=$?
2475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476   (exit $ac_status); }; then
2477   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2478 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2479 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2480 # so that the user can short-circuit this test for compilers unknown to
2481 # Autoconf.
2482 for ac_file in $ac_files ''
2483 do
2484   test -f "$ac_file" || continue
2485   case $ac_file in
2486     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2487         ;;
2488     [ab].out )
2489         # We found the default executable, but exeext='' is most
2490         # certainly right.
2491         break;;
2492     *.* )
2493         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2494         then :; else
2495            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2496         fi
2497         # We set ac_cv_exeext here because the later test for it is not
2498         # safe: cross compilers may not add the suffix if given an `-o'
2499         # argument, so we may need to know it at that point already.
2500         # Even if this section looks crufty: it has the advantage of
2501         # actually working.
2502         break;;
2503     * )
2504         break;;
2505   esac
2506 done
2507 test "$ac_cv_exeext" = no && ac_cv_exeext=
2508
2509 else
2510   ac_file=''
2511 fi
2512
2513 { echo "$as_me:$LINENO: result: $ac_file" >&5
2514 echo "${ECHO_T}$ac_file" >&6; }
2515 if test -z "$ac_file"; then
2516   echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2518
2519 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2520 See \`config.log' for more details." >&5
2521 echo "$as_me: error: C++ compiler cannot create executables
2522 See \`config.log' for more details." >&2;}
2523    { (exit 77); exit 77; }; }
2524 fi
2525
2526 ac_exeext=$ac_cv_exeext
2527
2528 # Check that the compiler produces executables we can run.  If not, either
2529 # the compiler is broken, or we cross compile.
2530 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2531 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2532 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2533 # If not cross compiling, check that we can run a simple program.
2534 if test "$cross_compiling" != yes; then
2535   if { ac_try='./$ac_file'
2536   { (case "(($ac_try" in
2537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538   *) ac_try_echo=$ac_try;;
2539 esac
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541   (eval "$ac_try") 2>&5
2542   ac_status=$?
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); }; }; then
2545     cross_compiling=no
2546   else
2547     if test "$cross_compiling" = maybe; then
2548         cross_compiling=yes
2549     else
2550         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2551 If you meant to cross compile, use \`--host'.
2552 See \`config.log' for more details." >&5
2553 echo "$as_me: error: cannot run C++ compiled programs.
2554 If you meant to cross compile, use \`--host'.
2555 See \`config.log' for more details." >&2;}
2556    { (exit 1); exit 1; }; }
2557     fi
2558   fi
2559 fi
2560 { echo "$as_me:$LINENO: result: yes" >&5
2561 echo "${ECHO_T}yes" >&6; }
2562
2563 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2564 ac_clean_files=$ac_clean_files_save
2565 # Check that the compiler produces executables we can run.  If not, either
2566 # the compiler is broken, or we cross compile.
2567 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2568 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2569 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2570 echo "${ECHO_T}$cross_compiling" >&6; }
2571
2572 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2573 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2574 if { (ac_try="$ac_link"
2575 case "(($ac_try" in
2576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2577   *) ac_try_echo=$ac_try;;
2578 esac
2579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2580   (eval "$ac_link") 2>&5
2581   ac_status=$?
2582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583   (exit $ac_status); }; then
2584   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2585 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2586 # work properly (i.e., refer to `conftest.exe'), while it won't with
2587 # `rm'.
2588 for ac_file in conftest.exe conftest conftest.*; do
2589   test -f "$ac_file" || continue
2590   case $ac_file in
2591     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2592     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2593           break;;
2594     * ) break;;
2595   esac
2596 done
2597 else
2598   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2599 See \`config.log' for more details." >&5
2600 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2601 See \`config.log' for more details." >&2;}
2602    { (exit 1); exit 1; }; }
2603 fi
2604
2605 rm -f conftest$ac_cv_exeext
2606 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2607 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2608
2609 rm -f conftest.$ac_ext
2610 EXEEXT=$ac_cv_exeext
2611 ac_exeext=$EXEEXT
2612 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2613 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2614 if test "${ac_cv_objext+set}" = set; then
2615   echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617   cat >conftest.$ac_ext <<_ACEOF
2618 /* confdefs.h.  */
2619 _ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h.  */
2623
2624 int
2625 main ()
2626 {
2627
2628   ;
2629   return 0;
2630 }
2631 _ACEOF
2632 rm -f conftest.o conftest.obj
2633 if { (ac_try="$ac_compile"
2634 case "(($ac_try" in
2635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636   *) ac_try_echo=$ac_try;;
2637 esac
2638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2639   (eval "$ac_compile") 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; then
2643   for ac_file in conftest.o conftest.obj conftest.*; do
2644   test -f "$ac_file" || continue;
2645   case $ac_file in
2646     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2647     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2648        break;;
2649   esac
2650 done
2651 else
2652   echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2654
2655 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2656 See \`config.log' for more details." >&5
2657 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2658 See \`config.log' for more details." >&2;}
2659    { (exit 1); exit 1; }; }
2660 fi
2661
2662 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2663 fi
2664 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2665 echo "${ECHO_T}$ac_cv_objext" >&6; }
2666 OBJEXT=$ac_cv_objext
2667 ac_objext=$OBJEXT
2668 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2669 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2670 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2671   echo $ECHO_N "(cached) $ECHO_C" >&6
2672 else
2673   cat >conftest.$ac_ext <<_ACEOF
2674 /* confdefs.h.  */
2675 _ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h.  */
2679
2680 int
2681 main ()
2682 {
2683 #ifndef __GNUC__
2684        choke me
2685 #endif
2686
2687   ;
2688   return 0;
2689 }
2690 _ACEOF
2691 rm -f conftest.$ac_objext
2692 if { (ac_try="$ac_compile"
2693 case "(($ac_try" in
2694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695   *) ac_try_echo=$ac_try;;
2696 esac
2697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698   (eval "$ac_compile") 2>conftest.er1
2699   ac_status=$?
2700   grep -v '^ *+' conftest.er1 >conftest.err
2701   rm -f conftest.er1
2702   cat conftest.err >&5
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); } && {
2705          test -z "$ac_cxx_werror_flag" ||
2706          test ! -s conftest.err
2707        } && test -s conftest.$ac_objext; then
2708   ac_compiler_gnu=yes
2709 else
2710   echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2712
2713         ac_compiler_gnu=no
2714 fi
2715
2716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2717 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2718
2719 fi
2720 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2721 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2722 GXX=`test $ac_compiler_gnu = yes && echo yes`
2723 ac_test_CXXFLAGS=${CXXFLAGS+set}
2724 ac_save_CXXFLAGS=$CXXFLAGS
2725 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2726 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2727 if test "${ac_cv_prog_cxx_g+set}" = set; then
2728   echo $ECHO_N "(cached) $ECHO_C" >&6
2729 else
2730   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2731    ac_cxx_werror_flag=yes
2732    ac_cv_prog_cxx_g=no
2733    CXXFLAGS="-g"
2734    cat >conftest.$ac_ext <<_ACEOF
2735 /* confdefs.h.  */
2736 _ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h.  */
2740
2741 int
2742 main ()
2743 {
2744
2745   ;
2746   return 0;
2747 }
2748 _ACEOF
2749 rm -f conftest.$ac_objext
2750 if { (ac_try="$ac_compile"
2751 case "(($ac_try" in
2752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753   *) ac_try_echo=$ac_try;;
2754 esac
2755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756   (eval "$ac_compile") 2>conftest.er1
2757   ac_status=$?
2758   grep -v '^ *+' conftest.er1 >conftest.err
2759   rm -f conftest.er1
2760   cat conftest.err >&5
2761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762   (exit $ac_status); } && {
2763          test -z "$ac_cxx_werror_flag" ||
2764          test ! -s conftest.err
2765        } && test -s conftest.$ac_objext; then
2766   ac_cv_prog_cxx_g=yes
2767 else
2768   echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2770
2771         CXXFLAGS=""
2772       cat >conftest.$ac_ext <<_ACEOF
2773 /* confdefs.h.  */
2774 _ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h.  */
2778
2779 int
2780 main ()
2781 {
2782
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 rm -f conftest.$ac_objext
2788 if { (ac_try="$ac_compile"
2789 case "(($ac_try" in
2790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791   *) ac_try_echo=$ac_try;;
2792 esac
2793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2794   (eval "$ac_compile") 2>conftest.er1
2795   ac_status=$?
2796   grep -v '^ *+' conftest.er1 >conftest.err
2797   rm -f conftest.er1
2798   cat conftest.err >&5
2799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800   (exit $ac_status); } && {
2801          test -z "$ac_cxx_werror_flag" ||
2802          test ! -s conftest.err
2803        } && test -s conftest.$ac_objext; then
2804   :
2805 else
2806   echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2808
2809         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2810          CXXFLAGS="-g"
2811          cat >conftest.$ac_ext <<_ACEOF
2812 /* confdefs.h.  */
2813 _ACEOF
2814 cat confdefs.h >>conftest.$ac_ext
2815 cat >>conftest.$ac_ext <<_ACEOF
2816 /* end confdefs.h.  */
2817
2818 int
2819 main ()
2820 {
2821
2822   ;
2823   return 0;
2824 }
2825 _ACEOF
2826 rm -f conftest.$ac_objext
2827 if { (ac_try="$ac_compile"
2828 case "(($ac_try" in
2829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830   *) ac_try_echo=$ac_try;;
2831 esac
2832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2833   (eval "$ac_compile") 2>conftest.er1
2834   ac_status=$?
2835   grep -v '^ *+' conftest.er1 >conftest.err
2836   rm -f conftest.er1
2837   cat conftest.err >&5
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); } && {
2840          test -z "$ac_cxx_werror_flag" ||
2841          test ! -s conftest.err
2842        } && test -s conftest.$ac_objext; then
2843   ac_cv_prog_cxx_g=yes
2844 else
2845   echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2847
2848
2849 fi
2850
2851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852 fi
2853
2854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2855 fi
2856
2857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2858    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2859 fi
2860 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2861 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2862 if test "$ac_test_CXXFLAGS" = set; then
2863   CXXFLAGS=$ac_save_CXXFLAGS
2864 elif test $ac_cv_prog_cxx_g = yes; then
2865   if test "$GXX" = yes; then
2866     CXXFLAGS="-g -O2"
2867   else
2868     CXXFLAGS="-g"
2869   fi
2870 else
2871   if test "$GXX" = yes; then
2872     CXXFLAGS="-O2"
2873   else
2874     CXXFLAGS=
2875   fi
2876 fi
2877 ac_ext=c
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882 DEPDIR="${am__leading_dot}deps"
2883
2884 ac_config_commands="$ac_config_commands depfiles"
2885
2886
2887 am_make=${MAKE-make}
2888 cat > confinc << 'END'
2889 am__doit:
2890         @echo done
2891 .PHONY: am__doit
2892 END
2893 # If we don't find an include directive, just comment out the code.
2894 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2895 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2896 am__include="#"
2897 am__quote=
2898 _am_result=none
2899 # First try GNU make style include.
2900 echo "include confinc" > confmf
2901 # We grep out `Entering directory' and `Leaving directory'
2902 # messages which can occur if `w' ends up in MAKEFLAGS.
2903 # In particular we don't look at `^make:' because GNU make might
2904 # be invoked under some other name (usually "gmake"), in which
2905 # case it prints its new name instead of `make'.
2906 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2907    am__include=include
2908    am__quote=
2909    _am_result=GNU
2910 fi
2911 # Now try BSD make style include.
2912 if test "$am__include" = "#"; then
2913    echo '.include "confinc"' > confmf
2914    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2915       am__include=.include
2916       am__quote="\""
2917       _am_result=BSD
2918    fi
2919 fi
2920
2921
2922 { echo "$as_me:$LINENO: result: $_am_result" >&5
2923 echo "${ECHO_T}$_am_result" >&6; }
2924 rm -f confinc confmf
2925
2926 # Check whether --enable-dependency-tracking was given.
2927 if test "${enable_dependency_tracking+set}" = set; then
2928   enableval=$enable_dependency_tracking;
2929 fi
2930
2931 if test "x$enable_dependency_tracking" != xno; then
2932   am_depcomp="$ac_aux_dir/depcomp"
2933   AMDEPBACKSLASH='\'
2934 fi
2935  if test "x$enable_dependency_tracking" != xno; then
2936   AMDEP_TRUE=
2937   AMDEP_FALSE='#'
2938 else
2939   AMDEP_TRUE='#'
2940   AMDEP_FALSE=
2941 fi
2942
2943
2944
2945 depcc="$CXX"  am_compiler_list=
2946
2947 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2948 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
2949 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2950   echo $ECHO_N "(cached) $ECHO_C" >&6
2951 else
2952   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2953   # We make a subdir and do the tests there.  Otherwise we can end up
2954   # making bogus files that we don't know about and never remove.  For
2955   # instance it was reported that on HP-UX the gcc test will end up
2956   # making a dummy file named `D' -- because `-MD' means `put the output
2957   # in D'.
2958   mkdir conftest.dir
2959   # Copy depcomp to subdir because otherwise we won't find it if we're
2960   # using a relative directory.
2961   cp "$am_depcomp" conftest.dir
2962   cd conftest.dir
2963   # We will build objects and dependencies in a subdirectory because
2964   # it helps to detect inapplicable dependency modes.  For instance
2965   # both Tru64's cc and ICC support -MD to output dependencies as a
2966   # side effect of compilation, but ICC will put the dependencies in
2967   # the current directory while Tru64 will put them in the object
2968   # directory.
2969   mkdir sub
2970
2971   am_cv_CXX_dependencies_compiler_type=none
2972   if test "$am_compiler_list" = ""; then
2973      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2974   fi
2975   for depmode in $am_compiler_list; do
2976     # Setup a source with many dependencies, because some compilers
2977     # like to wrap large dependency lists on column 80 (with \), and
2978     # we should not choose a depcomp mode which is confused by this.
2979     #
2980     # We need to recreate these files for each test, as the compiler may
2981     # overwrite some of them when testing with obscure command lines.
2982     # This happens at least with the AIX C compiler.
2983     : > sub/conftest.c
2984     for i in 1 2 3 4 5 6; do
2985       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2986       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2987       # Solaris 8's {/usr,}/bin/sh.
2988       touch sub/conftst$i.h
2989     done
2990     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2991
2992     case $depmode in
2993     nosideeffect)
2994       # after this tag, mechanisms are not by side-effect, so they'll
2995       # only be used when explicitly requested
2996       if test "x$enable_dependency_tracking" = xyes; then
2997         continue
2998       else
2999         break
3000       fi
3001       ;;
3002     none) break ;;
3003     esac
3004     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3005     # mode.  It turns out that the SunPro C++ compiler does not properly
3006     # handle `-M -o', and we need to detect this.
3007     if depmode=$depmode \
3008        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3009        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3010        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3011          >/dev/null 2>conftest.err &&
3012        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3013        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3014        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3015        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3016       # icc doesn't choke on unknown options, it will just issue warnings
3017       # or remarks (even with -Werror).  So we grep stderr for any message
3018       # that says an option was ignored or not supported.
3019       # When given -MP, icc 7.0 and 7.1 complain thusly:
3020       #   icc: Command line warning: ignoring option '-M'; no argument required
3021       # The diagnosis changed in icc 8.0:
3022       #   icc: Command line remark: option '-MP' not supported
3023       if (grep 'ignoring option' conftest.err ||
3024           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3025         am_cv_CXX_dependencies_compiler_type=$depmode
3026         break
3027       fi
3028     fi
3029   done
3030
3031   cd ..
3032   rm -rf conftest.dir
3033 else
3034   am_cv_CXX_dependencies_compiler_type=none
3035 fi
3036
3037 fi
3038 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3039 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3040 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3041
3042  if
3043   test "x$enable_dependency_tracking" != xno \
3044   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3045   am__fastdepCXX_TRUE=
3046   am__fastdepCXX_FALSE='#'
3047 else
3048   am__fastdepCXX_TRUE='#'
3049   am__fastdepCXX_FALSE=
3050 fi
3051
3052
3053 ac_ext=c
3054 ac_cpp='$CPP $CPPFLAGS'
3055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3058 if test -n "$ac_tool_prefix"; then
3059   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3060 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3063 if test "${ac_cv_prog_CC+set}" = set; then
3064   echo $ECHO_N "(cached) $ECHO_C" >&6
3065 else
3066   if test -n "$CC"; then
3067   ac_cv_prog_CC="$CC" # Let the user override the test.
3068 else
3069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070 for as_dir in $PATH
3071 do
3072   IFS=$as_save_IFS
3073   test -z "$as_dir" && as_dir=.
3074   for ac_exec_ext in '' $ac_executable_extensions; do
3075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3076     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078     break 2
3079   fi
3080 done
3081 done
3082 IFS=$as_save_IFS
3083
3084 fi
3085 fi
3086 CC=$ac_cv_prog_CC
3087 if test -n "$CC"; then
3088   { echo "$as_me:$LINENO: result: $CC" >&5
3089 echo "${ECHO_T}$CC" >&6; }
3090 else
3091   { echo "$as_me:$LINENO: result: no" >&5
3092 echo "${ECHO_T}no" >&6; }
3093 fi
3094
3095
3096 fi
3097 if test -z "$ac_cv_prog_CC"; then
3098   ac_ct_CC=$CC
3099   # Extract the first word of "gcc", so it can be a program name with args.
3100 set dummy gcc; ac_word=$2
3101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3103 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3104   echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106   if test -n "$ac_ct_CC"; then
3107   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3108 else
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112   IFS=$as_save_IFS
3113   test -z "$as_dir" && as_dir=.
3114   for ac_exec_ext in '' $ac_executable_extensions; do
3115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3116     ac_cv_prog_ac_ct_CC="gcc"
3117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118     break 2
3119   fi
3120 done
3121 done
3122 IFS=$as_save_IFS
3123
3124 fi
3125 fi
3126 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3127 if test -n "$ac_ct_CC"; then
3128   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3129 echo "${ECHO_T}$ac_ct_CC" >&6; }
3130 else
3131   { echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6; }
3133 fi
3134
3135   if test "x$ac_ct_CC" = x; then
3136     CC=""
3137   else
3138     case $cross_compiling:$ac_tool_warned in
3139 yes:)
3140 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3141 whose name does not start with the host triplet.  If you think this
3142 configuration is useful to you, please write to autoconf@gnu.org." >&5
3143 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3144 whose name does not start with the host triplet.  If you think this
3145 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3146 ac_tool_warned=yes ;;
3147 esac
3148     CC=$ac_ct_CC
3149   fi
3150 else
3151   CC="$ac_cv_prog_CC"
3152 fi
3153
3154 if test -z "$CC"; then
3155           if test -n "$ac_tool_prefix"; then
3156     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3157 set dummy ${ac_tool_prefix}cc; ac_word=$2
3158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3160 if test "${ac_cv_prog_CC+set}" = set; then
3161   echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163   if test -n "$CC"; then
3164   ac_cv_prog_CC="$CC" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169   IFS=$as_save_IFS
3170   test -z "$as_dir" && as_dir=.
3171   for ac_exec_ext in '' $ac_executable_extensions; do
3172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173     ac_cv_prog_CC="${ac_tool_prefix}cc"
3174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3175     break 2
3176   fi
3177 done
3178 done
3179 IFS=$as_save_IFS
3180
3181 fi
3182 fi
3183 CC=$ac_cv_prog_CC
3184 if test -n "$CC"; then
3185   { echo "$as_me:$LINENO: result: $CC" >&5
3186 echo "${ECHO_T}$CC" >&6; }
3187 else
3188   { echo "$as_me:$LINENO: result: no" >&5
3189 echo "${ECHO_T}no" >&6; }
3190 fi
3191
3192
3193   fi
3194 fi
3195 if test -z "$CC"; then
3196   # Extract the first word of "cc", so it can be a program name with args.
3197 set dummy cc; ac_word=$2
3198 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3199 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3200 if test "${ac_cv_prog_CC+set}" = set; then
3201   echo $ECHO_N "(cached) $ECHO_C" >&6
3202 else
3203   if test -n "$CC"; then
3204   ac_cv_prog_CC="$CC" # Let the user override the test.
3205 else
3206   ac_prog_rejected=no
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH
3209 do
3210   IFS=$as_save_IFS
3211   test -z "$as_dir" && as_dir=.
3212   for ac_exec_ext in '' $ac_executable_extensions; do
3213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3215        ac_prog_rejected=yes
3216        continue
3217      fi
3218     ac_cv_prog_CC="cc"
3219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3220     break 2
3221   fi
3222 done
3223 done
3224 IFS=$as_save_IFS
3225
3226 if test $ac_prog_rejected = yes; then
3227   # We found a bogon in the path, so make sure we never use it.
3228   set dummy $ac_cv_prog_CC
3229   shift
3230   if test $# != 0; then
3231     # We chose a different compiler from the bogus one.
3232     # However, it has the same basename, so the bogon will be chosen
3233     # first if we set CC to just the basename; use the full file name.
3234     shift
3235     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3236   fi
3237 fi
3238 fi
3239 fi
3240 CC=$ac_cv_prog_CC
3241 if test -n "$CC"; then
3242   { echo "$as_me:$LINENO: result: $CC" >&5
3243 echo "${ECHO_T}$CC" >&6; }
3244 else
3245   { echo "$as_me:$LINENO: result: no" >&5
3246 echo "${ECHO_T}no" >&6; }
3247 fi
3248
3249
3250 fi
3251 if test -z "$CC"; then
3252   if test -n "$ac_tool_prefix"; then
3253   for ac_prog in cl.exe
3254   do
3255     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3259 if test "${ac_cv_prog_CC+set}" = set; then
3260   echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262   if test -n "$CC"; then
3263   ac_cv_prog_CC="$CC" # Let the user override the test.
3264 else
3265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3266 for as_dir in $PATH
3267 do
3268   IFS=$as_save_IFS
3269   test -z "$as_dir" && as_dir=.
3270   for ac_exec_ext in '' $ac_executable_extensions; do
3271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3272     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3274     break 2
3275   fi
3276 done
3277 done
3278 IFS=$as_save_IFS
3279
3280 fi
3281 fi
3282 CC=$ac_cv_prog_CC
3283 if test -n "$CC"; then
3284   { echo "$as_me:$LINENO: result: $CC" >&5
3285 echo "${ECHO_T}$CC" >&6; }
3286 else
3287   { echo "$as_me:$LINENO: result: no" >&5
3288 echo "${ECHO_T}no" >&6; }
3289 fi
3290
3291
3292     test -n "$CC" && break
3293   done
3294 fi
3295 if test -z "$CC"; then
3296   ac_ct_CC=$CC
3297   for ac_prog in cl.exe
3298 do
3299   # Extract the first word of "$ac_prog", so it can be a program name with args.
3300 set dummy $ac_prog; ac_word=$2
3301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3303 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3304   echo $ECHO_N "(cached) $ECHO_C" >&6
3305 else
3306   if test -n "$ac_ct_CC"; then
3307   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3308 else
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3311 do
3312   IFS=$as_save_IFS
3313   test -z "$as_dir" && as_dir=.
3314   for ac_exec_ext in '' $ac_executable_extensions; do
3315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3316     ac_cv_prog_ac_ct_CC="$ac_prog"
3317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3318     break 2
3319   fi
3320 done
3321 done
3322 IFS=$as_save_IFS
3323
3324 fi
3325 fi
3326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3327 if test -n "$ac_ct_CC"; then
3328   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3329 echo "${ECHO_T}$ac_ct_CC" >&6; }
3330 else
3331   { echo "$as_me:$LINENO: result: no" >&5
3332 echo "${ECHO_T}no" >&6; }
3333 fi
3334
3335
3336   test -n "$ac_ct_CC" && break
3337 done
3338
3339   if test "x$ac_ct_CC" = x; then
3340     CC=""
3341   else
3342     case $cross_compiling:$ac_tool_warned in
3343 yes:)
3344 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3345 whose name does not start with the host triplet.  If you think this
3346 configuration is useful to you, please write to autoconf@gnu.org." >&5
3347 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3348 whose name does not start with the host triplet.  If you think this
3349 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3350 ac_tool_warned=yes ;;
3351 esac
3352     CC=$ac_ct_CC
3353   fi
3354 fi
3355
3356 fi
3357
3358
3359 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3360 See \`config.log' for more details." >&5
3361 echo "$as_me: error: no acceptable C compiler found in \$PATH
3362 See \`config.log' for more details." >&2;}
3363    { (exit 1); exit 1; }; }
3364
3365 # Provide some information about the compiler.
3366 echo "$as_me:$LINENO: checking for C compiler version" >&5
3367 ac_compiler=`set X $ac_compile; echo $2`
3368 { (ac_try="$ac_compiler --version >&5"
3369 case "(($ac_try" in
3370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371   *) ac_try_echo=$ac_try;;
3372 esac
3373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3374   (eval "$ac_compiler --version >&5") 2>&5
3375   ac_status=$?
3376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377   (exit $ac_status); }
3378 { (ac_try="$ac_compiler -v >&5"
3379 case "(($ac_try" in
3380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381   *) ac_try_echo=$ac_try;;
3382 esac
3383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3384   (eval "$ac_compiler -v >&5") 2>&5
3385   ac_status=$?
3386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387   (exit $ac_status); }
3388 { (ac_try="$ac_compiler -V >&5"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394   (eval "$ac_compiler -V >&5") 2>&5
3395   ac_status=$?
3396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397   (exit $ac_status); }
3398
3399 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3400 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3401 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3402   echo $ECHO_N "(cached) $ECHO_C" >&6
3403 else
3404   cat >conftest.$ac_ext <<_ACEOF
3405 /* confdefs.h.  */
3406 _ACEOF
3407 cat confdefs.h >>conftest.$ac_ext
3408 cat >>conftest.$ac_ext <<_ACEOF
3409 /* end confdefs.h.  */
3410
3411 int
3412 main ()
3413 {
3414 #ifndef __GNUC__
3415        choke me
3416 #endif
3417
3418   ;
3419   return 0;
3420 }
3421 _ACEOF
3422 rm -f conftest.$ac_objext
3423 if { (ac_try="$ac_compile"
3424 case "(($ac_try" in
3425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426   *) ac_try_echo=$ac_try;;
3427 esac
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429   (eval "$ac_compile") 2>conftest.er1
3430   ac_status=$?
3431   grep -v '^ *+' conftest.er1 >conftest.err
3432   rm -f conftest.er1
3433   cat conftest.err >&5
3434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435   (exit $ac_status); } && {
3436          test -z "$ac_c_werror_flag" ||
3437          test ! -s conftest.err
3438        } && test -s conftest.$ac_objext; then
3439   ac_compiler_gnu=yes
3440 else
3441   echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3443
3444         ac_compiler_gnu=no
3445 fi
3446
3447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3449
3450 fi
3451 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3453 GCC=`test $ac_compiler_gnu = yes && echo yes`
3454 ac_test_CFLAGS=${CFLAGS+set}
3455 ac_save_CFLAGS=$CFLAGS
3456 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3458 if test "${ac_cv_prog_cc_g+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   ac_save_c_werror_flag=$ac_c_werror_flag
3462    ac_c_werror_flag=yes
3463    ac_cv_prog_cc_g=no
3464    CFLAGS="-g"
3465    cat >conftest.$ac_ext <<_ACEOF
3466 /* confdefs.h.  */
3467 _ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h.  */
3471
3472 int
3473 main ()
3474 {
3475
3476   ;
3477   return 0;
3478 }
3479 _ACEOF
3480 rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3482 case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487   (eval "$ac_compile") 2>conftest.er1
3488   ac_status=$?
3489   grep -v '^ *+' conftest.er1 >conftest.err
3490   rm -f conftest.er1
3491   cat conftest.err >&5
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); } && {
3494          test -z "$ac_c_werror_flag" ||
3495          test ! -s conftest.err
3496        } && test -s conftest.$ac_objext; then
3497   ac_cv_prog_cc_g=yes
3498 else
3499   echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502         CFLAGS=""
3503       cat >conftest.$ac_ext <<_ACEOF
3504 /* confdefs.h.  */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h.  */
3509
3510 int
3511 main ()
3512 {
3513
3514   ;
3515   return 0;
3516 }
3517 _ACEOF
3518 rm -f conftest.$ac_objext
3519 if { (ac_try="$ac_compile"
3520 case "(($ac_try" in
3521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522   *) ac_try_echo=$ac_try;;
3523 esac
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525   (eval "$ac_compile") 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } && {
3532          test -z "$ac_c_werror_flag" ||
3533          test ! -s conftest.err
3534        } && test -s conftest.$ac_objext; then
3535   :
3536 else
3537   echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3539
3540         ac_c_werror_flag=$ac_save_c_werror_flag
3541          CFLAGS="-g"
3542          cat >conftest.$ac_ext <<_ACEOF
3543 /* confdefs.h.  */
3544 _ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h.  */
3548
3549 int
3550 main ()
3551 {
3552
3553   ;
3554   return 0;
3555 }
3556 _ACEOF
3557 rm -f conftest.$ac_objext
3558 if { (ac_try="$ac_compile"
3559 case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564   (eval "$ac_compile") 2>conftest.er1
3565   ac_status=$?
3566   grep -v '^ *+' conftest.er1 >conftest.err
3567   rm -f conftest.er1
3568   cat conftest.err >&5
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); } && {
3571          test -z "$ac_c_werror_flag" ||
3572          test ! -s conftest.err
3573        } && test -s conftest.$ac_objext; then
3574   ac_cv_prog_cc_g=yes
3575 else
3576   echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3578
3579
3580 fi
3581
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3583 fi
3584
3585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 fi
3587
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589    ac_c_werror_flag=$ac_save_c_werror_flag
3590 fi
3591 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3592 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3593 if test "$ac_test_CFLAGS" = set; then
3594   CFLAGS=$ac_save_CFLAGS
3595 elif test $ac_cv_prog_cc_g = yes; then
3596   if test "$GCC" = yes; then
3597     CFLAGS="-g -O2"
3598   else
3599     CFLAGS="-g"
3600   fi
3601 else
3602   if test "$GCC" = yes; then
3603     CFLAGS="-O2"
3604   else
3605     CFLAGS=
3606   fi
3607 fi
3608 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3609 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3610 if test "${ac_cv_prog_cc_c89+set}" = set; then
3611   echo $ECHO_N "(cached) $ECHO_C" >&6
3612 else
3613   ac_cv_prog_cc_c89=no
3614 ac_save_CC=$CC
3615 cat >conftest.$ac_ext <<_ACEOF
3616 /* confdefs.h.  */
3617 _ACEOF
3618 cat confdefs.h >>conftest.$ac_ext
3619 cat >>conftest.$ac_ext <<_ACEOF
3620 /* end confdefs.h.  */
3621 #include <stdarg.h>
3622 #include <stdio.h>
3623 #include <sys/types.h>
3624 #include <sys/stat.h>
3625 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3626 struct buf { int x; };
3627 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3628 static char *e (p, i)
3629      char **p;
3630      int i;
3631 {
3632   return p[i];
3633 }
3634 static char *f (char * (*g) (char **, int), char **p, ...)
3635 {
3636   char *s;
3637   va_list v;
3638   va_start (v,p);
3639   s = g (p, va_arg (v,int));
3640   va_end (v);
3641   return s;
3642 }
3643
3644 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3645    function prototypes and stuff, but not '\xHH' hex character constants.
3646    These don't provoke an error unfortunately, instead are silently treated
3647    as 'x'.  The following induces an error, until -std is added to get
3648    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3649    array size at least.  It's necessary to write '\x00'==0 to get something
3650    that's true only with -std.  */
3651 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3652
3653 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3654    inside strings and character constants.  */
3655 #define FOO(x) 'x'
3656 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3657
3658 int test (int i, double x);
3659 struct s1 {int (*f) (int a);};
3660 struct s2 {int (*f) (double a);};
3661 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3662 int argc;
3663 char **argv;
3664 int
3665 main ()
3666 {
3667 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3668   ;
3669   return 0;
3670 }
3671 _ACEOF
3672 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3673         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3674 do
3675   CC="$ac_save_CC $ac_arg"
3676   rm -f conftest.$ac_objext
3677 if { (ac_try="$ac_compile"
3678 case "(($ac_try" in
3679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680   *) ac_try_echo=$ac_try;;
3681 esac
3682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3683   (eval "$ac_compile") 2>conftest.er1
3684   ac_status=$?
3685   grep -v '^ *+' conftest.er1 >conftest.err
3686   rm -f conftest.er1
3687   cat conftest.err >&5
3688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689   (exit $ac_status); } && {
3690          test -z "$ac_c_werror_flag" ||
3691          test ! -s conftest.err
3692        } && test -s conftest.$ac_objext; then
3693   ac_cv_prog_cc_c89=$ac_arg
3694 else
3695   echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3697
3698
3699 fi
3700
3701 rm -f core conftest.err conftest.$ac_objext
3702   test "x$ac_cv_prog_cc_c89" != "xno" && break
3703 done
3704 rm -f conftest.$ac_ext
3705 CC=$ac_save_CC
3706
3707 fi
3708 # AC_CACHE_VAL
3709 case "x$ac_cv_prog_cc_c89" in
3710   x)
3711     { echo "$as_me:$LINENO: result: none needed" >&5
3712 echo "${ECHO_T}none needed" >&6; } ;;
3713   xno)
3714     { echo "$as_me:$LINENO: result: unsupported" >&5
3715 echo "${ECHO_T}unsupported" >&6; } ;;
3716   *)
3717     CC="$CC $ac_cv_prog_cc_c89"
3718     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3719 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3720 esac
3721
3722
3723 ac_ext=c
3724 ac_cpp='$CPP $CPPFLAGS'
3725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3728
3729 depcc="$CC"   am_compiler_list=
3730
3731 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3732 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3733 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3734   echo $ECHO_N "(cached) $ECHO_C" >&6
3735 else
3736   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3737   # We make a subdir and do the tests there.  Otherwise we can end up
3738   # making bogus files that we don't know about and never remove.  For
3739   # instance it was reported that on HP-UX the gcc test will end up
3740   # making a dummy file named `D' -- because `-MD' means `put the output
3741   # in D'.
3742   mkdir conftest.dir
3743   # Copy depcomp to subdir because otherwise we won't find it if we're
3744   # using a relative directory.
3745   cp "$am_depcomp" conftest.dir
3746   cd conftest.dir
3747   # We will build objects and dependencies in a subdirectory because
3748   # it helps to detect inapplicable dependency modes.  For instance
3749   # both Tru64's cc and ICC support -MD to output dependencies as a
3750   # side effect of compilation, but ICC will put the dependencies in
3751   # the current directory while Tru64 will put them in the object
3752   # directory.
3753   mkdir sub
3754
3755   am_cv_CC_dependencies_compiler_type=none
3756   if test "$am_compiler_list" = ""; then
3757      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3758   fi
3759   for depmode in $am_compiler_list; do
3760     # Setup a source with many dependencies, because some compilers
3761     # like to wrap large dependency lists on column 80 (with \), and
3762     # we should not choose a depcomp mode which is confused by this.
3763     #
3764     # We need to recreate these files for each test, as the compiler may
3765     # overwrite some of them when testing with obscure command lines.
3766     # This happens at least with the AIX C compiler.
3767     : > sub/conftest.c
3768     for i in 1 2 3 4 5 6; do
3769       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3770       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3771       # Solaris 8's {/usr,}/bin/sh.
3772       touch sub/conftst$i.h
3773     done
3774     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3775
3776     case $depmode in
3777     nosideeffect)
3778       # after this tag, mechanisms are not by side-effect, so they'll
3779       # only be used when explicitly requested
3780       if test "x$enable_dependency_tracking" = xyes; then
3781         continue
3782       else
3783         break
3784       fi
3785       ;;
3786     none) break ;;
3787     esac
3788     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3789     # mode.  It turns out that the SunPro C++ compiler does not properly
3790     # handle `-M -o', and we need to detect this.
3791     if depmode=$depmode \
3792        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3793        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3794        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3795          >/dev/null 2>conftest.err &&
3796        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3797        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3798        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3799        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3800       # icc doesn't choke on unknown options, it will just issue warnings
3801       # or remarks (even with -Werror).  So we grep stderr for any message
3802       # that says an option was ignored or not supported.
3803       # When given -MP, icc 7.0 and 7.1 complain thusly:
3804       #   icc: Command line warning: ignoring option '-M'; no argument required
3805       # The diagnosis changed in icc 8.0:
3806       #   icc: Command line remark: option '-MP' not supported
3807       if (grep 'ignoring option' conftest.err ||
3808           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3809         am_cv_CC_dependencies_compiler_type=$depmode
3810         break
3811       fi
3812     fi
3813   done
3814
3815   cd ..
3816   rm -rf conftest.dir
3817 else
3818   am_cv_CC_dependencies_compiler_type=none
3819 fi
3820
3821 fi
3822 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3823 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3824 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3825
3826  if
3827   test "x$enable_dependency_tracking" != xno \
3828   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3829   am__fastdepCC_TRUE=
3830   am__fastdepCC_FALSE='#'
3831 else
3832   am__fastdepCC_TRUE='#'
3833   am__fastdepCC_FALSE=
3834 fi
3835
3836
3837 #AC_PROG_CPP
3838 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3839 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3840 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3841 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3842   echo $ECHO_N "(cached) $ECHO_C" >&6
3843 else
3844   cat >conftest.make <<\_ACEOF
3845 SHELL = /bin/sh
3846 all:
3847         @echo '@@@%%%=$(MAKE)=@@@%%%'
3848 _ACEOF
3849 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3850 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3851   *@@@%%%=?*=@@@%%%*)
3852     eval ac_cv_prog_make_${ac_make}_set=yes;;
3853   *)
3854     eval ac_cv_prog_make_${ac_make}_set=no;;
3855 esac
3856 rm -f conftest.make
3857 fi
3858 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3859   { echo "$as_me:$LINENO: result: yes" >&5
3860 echo "${ECHO_T}yes" >&6; }
3861   SET_MAKE=
3862 else
3863   { echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6; }
3865   SET_MAKE="MAKE=${MAKE-make}"
3866 fi
3867
3868 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3869 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3870 LN_S=$as_ln_s
3871 if test "$LN_S" = "ln -s"; then
3872   { echo "$as_me:$LINENO: result: yes" >&5
3873 echo "${ECHO_T}yes" >&6; }
3874 else
3875   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3876 echo "${ECHO_T}no, using $LN_S" >&6; }
3877 fi
3878
3879
3880
3881 # Check whether --enable-selinux was given.
3882 if test "${enable_selinux+set}" = set; then
3883   enableval=$enable_selinux; enable_selinux=$enableval
3884 else
3885   enable_selinux="no"
3886 fi
3887
3888 if test "$enable_selinux" = "yes"; then
3889
3890 cat >>confdefs.h <<\_ACEOF
3891 #define WITH_SELINUX 1
3892 _ACEOF
3893
3894
3895 { echo "$as_me:$LINENO: checking for getfilecon in -lselinux" >&5
3896 echo $ECHO_N "checking for getfilecon in -lselinux... $ECHO_C" >&6; }
3897 if test "${ac_cv_lib_selinux_getfilecon+set}" = set; then
3898   echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900   ac_check_lib_save_LIBS=$LIBS
3901 LIBS="-lselinux  $LIBS"
3902 cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h.  */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h.  */
3908
3909 /* Override any GCC internal prototype to avoid an error.
3910    Use char because int might match the return type of a GCC
3911    builtin and then its argument prototype would still apply.  */
3912 #ifdef __cplusplus
3913 extern "C"
3914 #endif
3915 char getfilecon ();
3916 int
3917 main ()
3918 {
3919 return getfilecon ();
3920   ;
3921   return 0;
3922 }
3923 _ACEOF
3924 rm -f conftest.$ac_objext conftest$ac_exeext
3925 if { (ac_try="$ac_link"
3926 case "(($ac_try" in
3927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928   *) ac_try_echo=$ac_try;;
3929 esac
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931   (eval "$ac_link") 2>conftest.er1
3932   ac_status=$?
3933   grep -v '^ *+' conftest.er1 >conftest.err
3934   rm -f conftest.er1
3935   cat conftest.err >&5
3936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937   (exit $ac_status); } && {
3938          test -z "$ac_c_werror_flag" ||
3939          test ! -s conftest.err
3940        } && test -s conftest$ac_exeext &&
3941        $as_test_x conftest$ac_exeext; then
3942   ac_cv_lib_selinux_getfilecon=yes
3943 else
3944   echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3946
3947         ac_cv_lib_selinux_getfilecon=no
3948 fi
3949
3950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3951       conftest$ac_exeext conftest.$ac_ext
3952 LIBS=$ac_check_lib_save_LIBS
3953 fi
3954 { echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_getfilecon" >&5
3955 echo "${ECHO_T}$ac_cv_lib_selinux_getfilecon" >&6; }
3956 if test $ac_cv_lib_selinux_getfilecon = yes; then
3957   SELINUX_LIB=-lselinux
3958 else
3959
3960      { { echo "$as_me:$LINENO: error: Cannot find selinux static library" >&5
3961 echo "$as_me: error: Cannot find selinux static library" >&2;}
3962    { (exit 1); exit 1; }; }
3963 fi
3964
3965 fi
3966
3967
3968
3969 # Check whether --enable-ipv6 was given.
3970 if test "${enable_ipv6+set}" = set; then
3971   enableval=$enable_ipv6; enable_ipv6=$enableval
3972 else
3973   enable_ipv6="yes"
3974 fi
3975
3976 if test "$enable_ipv6" = "yes"; then
3977
3978 cat >>confdefs.h <<\_ACEOF
3979 #define WITH_IPV6 1
3980 _ACEOF
3981
3982 fi
3983
3984 { echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
3985 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6; }
3986 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
3987   echo $ECHO_N "(cached) $ECHO_C" >&6
3988 else
3989   ac_check_lib_save_LIBS=$LIBS
3990 LIBS="-ltinfo  $LIBS"
3991 cat >conftest.$ac_ext <<_ACEOF
3992 /* confdefs.h.  */
3993 _ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h.  */
3997
3998 /* Override any GCC internal prototype to avoid an error.
3999    Use char because int might match the return type of a GCC
4000    builtin and then its argument prototype would still apply.  */
4001 #ifdef __cplusplus
4002 extern "C"
4003 #endif
4004 char tgetent ();
4005 int
4006 main ()
4007 {
4008 return tgetent ();
4009   ;
4010   return 0;
4011 }
4012 _ACEOF
4013 rm -f conftest.$ac_objext conftest$ac_exeext
4014 if { (ac_try="$ac_link"
4015 case "(($ac_try" in
4016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017   *) ac_try_echo=$ac_try;;
4018 esac
4019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020   (eval "$ac_link") 2>conftest.er1
4021   ac_status=$?
4022   grep -v '^ *+' conftest.er1 >conftest.err
4023   rm -f conftest.er1
4024   cat conftest.err >&5
4025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026   (exit $ac_status); } && {
4027          test -z "$ac_c_werror_flag" ||
4028          test ! -s conftest.err
4029        } && test -s conftest$ac_exeext &&
4030        $as_test_x conftest$ac_exeext; then
4031   ac_cv_lib_tinfo_tgetent=yes
4032 else
4033   echo "$as_me: failed program was:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4035
4036         ac_cv_lib_tinfo_tgetent=no
4037 fi
4038
4039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4040       conftest$ac_exeext conftest.$ac_ext
4041 LIBS=$ac_check_lib_save_LIBS
4042 fi
4043 { echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
4044 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6; }
4045 if test $ac_cv_lib_tinfo_tgetent = yes; then
4046   TERMCAP_LIB=-ltinfo
4047 else
4048    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
4049 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
4050 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
4051   echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053   ac_check_lib_save_LIBS=$LIBS
4054 LIBS="-lncurses  $LIBS"
4055 cat >conftest.$ac_ext <<_ACEOF
4056 /* confdefs.h.  */
4057 _ACEOF
4058 cat confdefs.h >>conftest.$ac_ext
4059 cat >>conftest.$ac_ext <<_ACEOF
4060 /* end confdefs.h.  */
4061
4062 /* Override any GCC internal prototype to avoid an error.
4063    Use char because int might match the return type of a GCC
4064    builtin and then its argument prototype would still apply.  */
4065 #ifdef __cplusplus
4066 extern "C"
4067 #endif
4068 char tgetent ();
4069 int
4070 main ()
4071 {
4072 return tgetent ();
4073   ;
4074   return 0;
4075 }
4076 _ACEOF
4077 rm -f conftest.$ac_objext conftest$ac_exeext
4078 if { (ac_try="$ac_link"
4079 case "(($ac_try" in
4080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081   *) ac_try_echo=$ac_try;;
4082 esac
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084   (eval "$ac_link") 2>conftest.er1
4085   ac_status=$?
4086   grep -v '^ *+' conftest.er1 >conftest.err
4087   rm -f conftest.er1
4088   cat conftest.err >&5
4089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); } && {
4091          test -z "$ac_c_werror_flag" ||
4092          test ! -s conftest.err
4093        } && test -s conftest$ac_exeext &&
4094        $as_test_x conftest$ac_exeext; then
4095   ac_cv_lib_ncurses_tgetent=yes
4096 else
4097   echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4099
4100         ac_cv_lib_ncurses_tgetent=no
4101 fi
4102
4103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4104       conftest$ac_exeext conftest.$ac_ext
4105 LIBS=$ac_check_lib_save_LIBS
4106 fi
4107 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
4108 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
4109 if test $ac_cv_lib_ncurses_tgetent = yes; then
4110   TERMCAP_LIB=-lncurses
4111 else
4112    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
4113 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
4114 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
4115   echo $ECHO_N "(cached) $ECHO_C" >&6
4116 else
4117   ac_check_lib_save_LIBS=$LIBS
4118 LIBS="-ltermcap  $LIBS"
4119 cat >conftest.$ac_ext <<_ACEOF
4120 /* confdefs.h.  */
4121 _ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h.  */
4125
4126 /* Override any GCC internal prototype to avoid an error.
4127    Use char because int might match the return type of a GCC
4128    builtin and then its argument prototype would still apply.  */
4129 #ifdef __cplusplus
4130 extern "C"
4131 #endif
4132 char tgetent ();
4133 int
4134 main ()
4135 {
4136 return tgetent ();
4137   ;
4138   return 0;
4139 }
4140 _ACEOF
4141 rm -f conftest.$ac_objext conftest$ac_exeext
4142 if { (ac_try="$ac_link"
4143 case "(($ac_try" in
4144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145   *) ac_try_echo=$ac_try;;
4146 esac
4147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4148   (eval "$ac_link") 2>conftest.er1
4149   ac_status=$?
4150   grep -v '^ *+' conftest.er1 >conftest.err
4151   rm -f conftest.er1
4152   cat conftest.err >&5
4153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154   (exit $ac_status); } && {
4155          test -z "$ac_c_werror_flag" ||
4156          test ! -s conftest.err
4157        } && test -s conftest$ac_exeext &&
4158        $as_test_x conftest$ac_exeext; then
4159   ac_cv_lib_termcap_tgetent=yes
4160 else
4161   echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4163
4164         ac_cv_lib_termcap_tgetent=no
4165 fi
4166
4167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4168       conftest$ac_exeext conftest.$ac_ext
4169 LIBS=$ac_check_lib_save_LIBS
4170 fi
4171 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
4172 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
4173 if test $ac_cv_lib_termcap_tgetent = yes; then
4174   TERMCAP_LIB=-ltermcap
4175 else
4176    { { echo "$as_me:$LINENO: error: Cannot find tinfo, ncurses or termcap libraries" >&5
4177 echo "$as_me: error: Cannot find tinfo, ncurses or termcap libraries" >&2;}
4178    { (exit 1); exit 1; }; }
4179
4180 fi
4181
4182
4183 fi
4184
4185
4186 fi
4187
4188
4189
4190
4191
4192
4193
4194
4195 ac_header_dirent=no
4196 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4197   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4198 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4199 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4201   echo $ECHO_N "(cached) $ECHO_C" >&6
4202 else
4203   cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h.  */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h.  */
4209 #include <sys/types.h>
4210 #include <$ac_hdr>
4211
4212 int
4213 main ()
4214 {
4215 if ((DIR *) 0)
4216 return 0;
4217   ;
4218   return 0;
4219 }
4220 _ACEOF
4221 rm -f conftest.$ac_objext
4222 if { (ac_try="$ac_compile"
4223 case "(($ac_try" in
4224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225   *) ac_try_echo=$ac_try;;
4226 esac
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228   (eval "$ac_compile") 2>conftest.er1
4229   ac_status=$?
4230   grep -v '^ *+' conftest.er1 >conftest.err
4231   rm -f conftest.er1
4232   cat conftest.err >&5
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); } && {
4235          test -z "$ac_c_werror_flag" ||
4236          test ! -s conftest.err
4237        } && test -s conftest.$ac_objext; then
4238   eval "$as_ac_Header=yes"
4239 else
4240   echo "$as_me: failed program was:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4242
4243         eval "$as_ac_Header=no"
4244 fi
4245
4246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247 fi
4248 ac_res=`eval echo '${'$as_ac_Header'}'`
4249                { echo "$as_me:$LINENO: result: $ac_res" >&5
4250 echo "${ECHO_T}$ac_res" >&6; }
4251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4252   cat >>confdefs.h <<_ACEOF
4253 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4254 _ACEOF
4255
4256 ac_header_dirent=$ac_hdr; break
4257 fi
4258
4259 done
4260 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4261 if test $ac_header_dirent = dirent.h; then
4262   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4263 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4264 if test "${ac_cv_search_opendir+set}" = set; then
4265   echo $ECHO_N "(cached) $ECHO_C" >&6
4266 else
4267   ac_func_search_save_LIBS=$LIBS
4268 cat >conftest.$ac_ext <<_ACEOF
4269 /* confdefs.h.  */
4270 _ACEOF
4271 cat confdefs.h >>conftest.$ac_ext
4272 cat >>conftest.$ac_ext <<_ACEOF
4273 /* end confdefs.h.  */
4274
4275 /* Override any GCC internal prototype to avoid an error.
4276    Use char because int might match the return type of a GCC
4277    builtin and then its argument prototype would still apply.  */
4278 #ifdef __cplusplus
4279 extern "C"
4280 #endif
4281 char opendir ();
4282 int
4283 main ()
4284 {
4285 return opendir ();
4286   ;
4287   return 0;
4288 }
4289 _ACEOF
4290 for ac_lib in '' dir; do
4291   if test -z "$ac_lib"; then
4292     ac_res="none required"
4293   else
4294     ac_res=-l$ac_lib
4295     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4296   fi
4297   rm -f conftest.$ac_objext conftest$ac_exeext
4298 if { (ac_try="$ac_link"
4299 case "(($ac_try" in
4300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301   *) ac_try_echo=$ac_try;;
4302 esac
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304   (eval "$ac_link") 2>conftest.er1
4305   ac_status=$?
4306   grep -v '^ *+' conftest.er1 >conftest.err
4307   rm -f conftest.er1
4308   cat conftest.err >&5
4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310   (exit $ac_status); } && {
4311          test -z "$ac_c_werror_flag" ||
4312          test ! -s conftest.err
4313        } && test -s conftest$ac_exeext &&
4314        $as_test_x conftest$ac_exeext; then
4315   ac_cv_search_opendir=$ac_res
4316 else
4317   echo "$as_me: failed program was:" >&5
4318 sed 's/^/| /' conftest.$ac_ext >&5
4319
4320
4321 fi
4322
4323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4324       conftest$ac_exeext
4325   if test "${ac_cv_search_opendir+set}" = set; then
4326   break
4327 fi
4328 done
4329 if test "${ac_cv_search_opendir+set}" = set; then
4330   :
4331 else
4332   ac_cv_search_opendir=no
4333 fi
4334 rm conftest.$ac_ext
4335 LIBS=$ac_func_search_save_LIBS
4336 fi
4337 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4338 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4339 ac_res=$ac_cv_search_opendir
4340 if test "$ac_res" != no; then
4341   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4342
4343 fi
4344
4345 else
4346   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4347 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4348 if test "${ac_cv_search_opendir+set}" = set; then
4349   echo $ECHO_N "(cached) $ECHO_C" >&6
4350 else
4351   ac_func_search_save_LIBS=$LIBS
4352 cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h.  */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h.  */
4358
4359 /* Override any GCC internal prototype to avoid an error.
4360    Use char because int might match the return type of a GCC
4361    builtin and then its argument prototype would still apply.  */
4362 #ifdef __cplusplus
4363 extern "C"
4364 #endif
4365 char opendir ();
4366 int
4367 main ()
4368 {
4369 return opendir ();
4370   ;
4371   return 0;
4372 }
4373 _ACEOF
4374 for ac_lib in '' x; do
4375   if test -z "$ac_lib"; then
4376     ac_res="none required"
4377   else
4378     ac_res=-l$ac_lib
4379     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4380   fi
4381   rm -f conftest.$ac_objext conftest$ac_exeext
4382 if { (ac_try="$ac_link"
4383 case "(($ac_try" in
4384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385   *) ac_try_echo=$ac_try;;
4386 esac
4387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4388   (eval "$ac_link") 2>conftest.er1
4389   ac_status=$?
4390   grep -v '^ *+' conftest.er1 >conftest.err
4391   rm -f conftest.er1
4392   cat conftest.err >&5
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); } && {
4395          test -z "$ac_c_werror_flag" ||
4396          test ! -s conftest.err
4397        } && test -s conftest$ac_exeext &&
4398        $as_test_x conftest$ac_exeext; then
4399   ac_cv_search_opendir=$ac_res
4400 else
4401   echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4403
4404
4405 fi
4406
4407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4408       conftest$ac_exeext
4409   if test "${ac_cv_search_opendir+set}" = set; then
4410   break
4411 fi
4412 done
4413 if test "${ac_cv_search_opendir+set}" = set; then
4414   :
4415 else
4416   ac_cv_search_opendir=no
4417 fi
4418 rm conftest.$ac_ext
4419 LIBS=$ac_func_search_save_LIBS
4420 fi
4421 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4422 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4423 ac_res=$ac_cv_search_opendir
4424 if test "$ac_res" != no; then
4425   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4426
4427 fi
4428
4429 fi
4430
4431 ac_ext=c
4432 ac_cpp='$CPP $CPPFLAGS'
4433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4437 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4438 # On Suns, sometimes $CPP names a directory.
4439 if test -n "$CPP" && test -d "$CPP"; then
4440   CPP=
4441 fi
4442 if test -z "$CPP"; then
4443   if test "${ac_cv_prog_CPP+set}" = set; then
4444   echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446       # Double quotes because CPP needs to be expanded
4447     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4448     do
4449       ac_preproc_ok=false
4450 for ac_c_preproc_warn_flag in '' yes
4451 do
4452   # Use a header file that comes with gcc, so configuring glibc
4453   # with a fresh cross-compiler works.
4454   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4455   # <limits.h> exists even on freestanding compilers.
4456   # On the NeXT, cc -E runs the code through the compiler's parser,
4457   # not just through cpp. "Syntax error" is here to catch this case.
4458   cat >conftest.$ac_ext <<_ACEOF
4459 /* confdefs.h.  */
4460 _ACEOF
4461 cat confdefs.h >>conftest.$ac_ext
4462 cat >>conftest.$ac_ext <<_ACEOF
4463 /* end confdefs.h.  */
4464 #ifdef __STDC__
4465 # include <limits.h>
4466 #else
4467 # include <assert.h>
4468 #endif
4469                      Syntax error
4470 _ACEOF
4471 if { (ac_try="$ac_cpp conftest.$ac_ext"
4472 case "(($ac_try" in
4473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474   *) ac_try_echo=$ac_try;;
4475 esac
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4478   ac_status=$?
4479   grep -v '^ *+' conftest.er1 >conftest.err
4480   rm -f conftest.er1
4481   cat conftest.err >&5
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); } >/dev/null && {
4484          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4485          test ! -s conftest.err
4486        }; then
4487   :
4488 else
4489   echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4491
4492   # Broken: fails on valid input.
4493 continue
4494 fi
4495
4496 rm -f conftest.err conftest.$ac_ext
4497
4498   # OK, works on sane cases.  Now check whether nonexistent headers
4499   # can be detected and how.
4500   cat >conftest.$ac_ext <<_ACEOF
4501 /* confdefs.h.  */
4502 _ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h.  */
4506 #include <ac_nonexistent.h>
4507 _ACEOF
4508 if { (ac_try="$ac_cpp conftest.$ac_ext"
4509 case "(($ac_try" in
4510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4511   *) ac_try_echo=$ac_try;;
4512 esac
4513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4514   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4515   ac_status=$?
4516   grep -v '^ *+' conftest.er1 >conftest.err
4517   rm -f conftest.er1
4518   cat conftest.err >&5
4519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520   (exit $ac_status); } >/dev/null && {
4521          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4522          test ! -s conftest.err
4523        }; then
4524   # Broken: success on invalid input.
4525 continue
4526 else
4527   echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4529
4530   # Passes both tests.
4531 ac_preproc_ok=:
4532 break
4533 fi
4534
4535 rm -f conftest.err conftest.$ac_ext
4536
4537 done
4538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4539 rm -f conftest.err conftest.$ac_ext
4540 if $ac_preproc_ok; then
4541   break
4542 fi
4543
4544     done
4545     ac_cv_prog_CPP=$CPP
4546
4547 fi
4548   CPP=$ac_cv_prog_CPP
4549 else
4550   ac_cv_prog_CPP=$CPP
4551 fi
4552 { echo "$as_me:$LINENO: result: $CPP" >&5
4553 echo "${ECHO_T}$CPP" >&6; }
4554 ac_preproc_ok=false
4555 for ac_c_preproc_warn_flag in '' yes
4556 do
4557   # Use a header file that comes with gcc, so configuring glibc
4558   # with a fresh cross-compiler works.
4559   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4560   # <limits.h> exists even on freestanding compilers.
4561   # On the NeXT, cc -E runs the code through the compiler's parser,
4562   # not just through cpp. "Syntax error" is here to catch this case.
4563   cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h.  */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h.  */
4569 #ifdef __STDC__
4570 # include <limits.h>
4571 #else
4572 # include <assert.h>
4573 #endif
4574                      Syntax error
4575 _ACEOF
4576 if { (ac_try="$ac_cpp conftest.$ac_ext"
4577 case "(($ac_try" in
4578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579   *) ac_try_echo=$ac_try;;
4580 esac
4581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4582   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4583   ac_status=$?
4584   grep -v '^ *+' conftest.er1 >conftest.err
4585   rm -f conftest.er1
4586   cat conftest.err >&5
4587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588   (exit $ac_status); } >/dev/null && {
4589          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4590          test ! -s conftest.err
4591        }; then
4592   :
4593 else
4594   echo "$as_me: failed program was:" >&5
4595 sed 's/^/| /' conftest.$ac_ext >&5
4596
4597   # Broken: fails on valid input.
4598 continue
4599 fi
4600
4601 rm -f conftest.err conftest.$ac_ext
4602
4603   # OK, works on sane cases.  Now check whether nonexistent headers
4604   # can be detected and how.
4605   cat >conftest.$ac_ext <<_ACEOF
4606 /* confdefs.h.  */
4607 _ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h.  */
4611 #include <ac_nonexistent.h>
4612 _ACEOF
4613 if { (ac_try="$ac_cpp conftest.$ac_ext"
4614 case "(($ac_try" in
4615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4616   *) ac_try_echo=$ac_try;;
4617 esac
4618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4619   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4620   ac_status=$?
4621   grep -v '^ *+' conftest.er1 >conftest.err
4622   rm -f conftest.er1
4623   cat conftest.err >&5
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); } >/dev/null && {
4626          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4627          test ! -s conftest.err
4628        }; then
4629   # Broken: success on invalid input.
4630 continue
4631 else
4632   echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4634
4635   # Passes both tests.
4636 ac_preproc_ok=:
4637 break
4638 fi
4639
4640 rm -f conftest.err conftest.$ac_ext
4641
4642 done
4643 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4644 rm -f conftest.err conftest.$ac_ext
4645 if $ac_preproc_ok; then
4646   :
4647 else
4648   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4649 See \`config.log' for more details." >&5
4650 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4651 See \`config.log' for more details." >&2;}
4652    { (exit 1); exit 1; }; }
4653 fi
4654
4655 ac_ext=c
4656 ac_cpp='$CPP $CPPFLAGS'
4657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4660
4661
4662 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4663 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4664 if test "${ac_cv_path_GREP+set}" = set; then
4665   echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667   # Extract the first word of "grep ggrep" to use in msg output
4668 if test -z "$GREP"; then
4669 set dummy grep ggrep; ac_prog_name=$2
4670 if test "${ac_cv_path_GREP+set}" = set; then
4671   echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673   ac_path_GREP_found=false
4674 # Loop through the user's path and test for each of PROGNAME-LIST
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4677 do
4678   IFS=$as_save_IFS
4679   test -z "$as_dir" && as_dir=.
4680   for ac_prog in grep ggrep; do
4681   for ac_exec_ext in '' $ac_executable_extensions; do
4682     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4683     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4684     # Check for GNU ac_path_GREP and select it if it is found.
4685   # Check for GNU $ac_path_GREP
4686 case `"$ac_path_GREP" --version 2>&1` in
4687 *GNU*)
4688   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4689 *)
4690   ac_count=0
4691   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4692   while :
4693   do
4694     cat "conftest.in" "conftest.in" >"conftest.tmp"
4695     mv "conftest.tmp" "conftest.in"
4696     cp "conftest.in" "conftest.nl"
4697     echo 'GREP' >> "conftest.nl"
4698     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4699     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4700     ac_count=`expr $ac_count + 1`
4701     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4702       # Best one so far, save it but keep looking for a better one
4703       ac_cv_path_GREP="$ac_path_GREP"
4704       ac_path_GREP_max=$ac_count
4705     fi
4706     # 10*(2^10) chars as input seems more than enough
4707     test $ac_count -gt 10 && break
4708   done
4709   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4710 esac
4711
4712
4713     $ac_path_GREP_found && break 3
4714   done
4715 done
4716
4717 done
4718 IFS=$as_save_IFS
4719
4720
4721 fi
4722
4723 GREP="$ac_cv_path_GREP"
4724 if test -z "$GREP"; then
4725   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4726 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4727    { (exit 1); exit 1; }; }
4728 fi
4729
4730 else
4731   ac_cv_path_GREP=$GREP
4732 fi
4733
4734
4735 fi
4736 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4737 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4738  GREP="$ac_cv_path_GREP"
4739
4740
4741 { echo "$as_me:$LINENO: checking for egrep" >&5
4742 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4743 if test "${ac_cv_path_EGREP+set}" = set; then
4744   echo $ECHO_N "(cached) $ECHO_C" >&6
4745 else
4746   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4747    then ac_cv_path_EGREP="$GREP -E"
4748    else
4749      # Extract the first word of "egrep" to use in msg output
4750 if test -z "$EGREP"; then
4751 set dummy egrep; ac_prog_name=$2
4752 if test "${ac_cv_path_EGREP+set}" = set; then
4753   echo $ECHO_N "(cached) $ECHO_C" >&6
4754 else
4755   ac_path_EGREP_found=false
4756 # Loop through the user's path and test for each of PROGNAME-LIST
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4759 do
4760   IFS=$as_save_IFS
4761   test -z "$as_dir" && as_dir=.
4762   for ac_prog in egrep; do
4763   for ac_exec_ext in '' $ac_executable_extensions; do
4764     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4765     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4766     # Check for GNU ac_path_EGREP and select it if it is found.
4767   # Check for GNU $ac_path_EGREP
4768 case `"$ac_path_EGREP" --version 2>&1` in
4769 *GNU*)
4770   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4771 *)
4772   ac_count=0
4773   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4774   while :
4775   do
4776     cat "conftest.in" "conftest.in" >"conftest.tmp"
4777     mv "conftest.tmp" "conftest.in"
4778     cp "conftest.in" "conftest.nl"
4779     echo 'EGREP' >> "conftest.nl"
4780     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4781     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4782     ac_count=`expr $ac_count + 1`
4783     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4784       # Best one so far, save it but keep looking for a better one
4785       ac_cv_path_EGREP="$ac_path_EGREP"
4786       ac_path_EGREP_max=$ac_count
4787     fi
4788     # 10*(2^10) chars as input seems more than enough
4789     test $ac_count -gt 10 && break
4790   done
4791   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4792 esac
4793
4794
4795     $ac_path_EGREP_found && break 3
4796   done
4797 done
4798
4799 done
4800 IFS=$as_save_IFS
4801
4802
4803 fi
4804
4805 EGREP="$ac_cv_path_EGREP"
4806 if test -z "$EGREP"; then
4807   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4808 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4809    { (exit 1); exit 1; }; }
4810 fi
4811
4812 else
4813   ac_cv_path_EGREP=$EGREP
4814 fi
4815
4816
4817    fi
4818 fi
4819 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4820 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4821  EGREP="$ac_cv_path_EGREP"
4822
4823
4824 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4825 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4826 if test "${ac_cv_header_stdc+set}" = set; then
4827   echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829   cat >conftest.$ac_ext <<_ACEOF
4830 /* confdefs.h.  */
4831 _ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h.  */
4835 #include <stdlib.h>
4836 #include <stdarg.h>
4837 #include <string.h>
4838 #include <float.h>
4839
4840 int
4841 main ()
4842 {
4843
4844   ;
4845   return 0;
4846 }
4847 _ACEOF
4848 rm -f conftest.$ac_objext
4849 if { (ac_try="$ac_compile"
4850 case "(($ac_try" in
4851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4852   *) ac_try_echo=$ac_try;;
4853 esac
4854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855   (eval "$ac_compile") 2>conftest.er1
4856   ac_status=$?
4857   grep -v '^ *+' conftest.er1 >conftest.err
4858   rm -f conftest.er1
4859   cat conftest.err >&5
4860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861   (exit $ac_status); } && {
4862          test -z "$ac_c_werror_flag" ||
4863          test ! -s conftest.err
4864        } && test -s conftest.$ac_objext; then
4865   ac_cv_header_stdc=yes
4866 else
4867   echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4869
4870         ac_cv_header_stdc=no
4871 fi
4872
4873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874
4875 if test $ac_cv_header_stdc = yes; then
4876   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4877   cat >conftest.$ac_ext <<_ACEOF
4878 /* confdefs.h.  */
4879 _ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h.  */
4883 #include <string.h>
4884
4885 _ACEOF
4886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4887   $EGREP "memchr" >/dev/null 2>&1; then
4888   :
4889 else
4890   ac_cv_header_stdc=no
4891 fi
4892 rm -f conftest*
4893
4894 fi
4895
4896 if test $ac_cv_header_stdc = yes; then
4897   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4898   cat >conftest.$ac_ext <<_ACEOF
4899 /* confdefs.h.  */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h.  */
4904 #include <stdlib.h>
4905
4906 _ACEOF
4907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4908   $EGREP "free" >/dev/null 2>&1; then
4909   :
4910 else
4911   ac_cv_header_stdc=no
4912 fi
4913 rm -f conftest*
4914
4915 fi
4916
4917 if test $ac_cv_header_stdc = yes; then
4918   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4919   if test "$cross_compiling" = yes; then
4920   :
4921 else
4922   cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h.  */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h.  */
4928 #include <ctype.h>
4929 #include <stdlib.h>
4930 #if ((' ' & 0x0FF) == 0x020)
4931 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4932 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4933 #else
4934 # define ISLOWER(c) \
4935                    (('a' <= (c) && (c) <= 'i') \
4936                      || ('j' <= (c) && (c) <= 'r') \
4937                      || ('s' <= (c) && (c) <= 'z'))
4938 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4939 #endif
4940
4941 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4942 int
4943 main ()
4944 {
4945   int i;
4946   for (i = 0; i < 256; i++)
4947     if (XOR (islower (i), ISLOWER (i))
4948         || toupper (i) != TOUPPER (i))
4949       return 2;
4950   return 0;
4951 }
4952 _ACEOF
4953 rm -f conftest$ac_exeext
4954 if { (ac_try="$ac_link"
4955 case "(($ac_try" in
4956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957   *) ac_try_echo=$ac_try;;
4958 esac
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960   (eval "$ac_link") 2>&5
4961   ac_status=$?
4962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4964   { (case "(($ac_try" in
4965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966   *) ac_try_echo=$ac_try;;
4967 esac
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969   (eval "$ac_try") 2>&5
4970   ac_status=$?
4971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972   (exit $ac_status); }; }; then
4973   :
4974 else
4975   echo "$as_me: program exited with status $ac_status" >&5
4976 echo "$as_me: failed program was:" >&5
4977 sed 's/^/| /' conftest.$ac_ext >&5
4978
4979 ( exit $ac_status )
4980 ac_cv_header_stdc=no
4981 fi
4982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4983 fi
4984
4985
4986 fi
4987 fi
4988 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4989 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4990 if test $ac_cv_header_stdc = yes; then
4991
4992 cat >>confdefs.h <<\_ACEOF
4993 #define STDC_HEADERS 1
4994 _ACEOF
4995
4996 fi
4997
4998 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4999 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
5000 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5001   echo $ECHO_N "(cached) $ECHO_C" >&6
5002 else
5003   cat >conftest.$ac_ext <<_ACEOF
5004 /* confdefs.h.  */
5005 _ACEOF
5006 cat confdefs.h >>conftest.$ac_ext
5007 cat >>conftest.$ac_ext <<_ACEOF
5008 /* end confdefs.h.  */
5009 #include <sys/types.h>
5010 #include <sys/wait.h>
5011 #ifndef WEXITSTATUS
5012 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
5013 #endif
5014 #ifndef WIFEXITED
5015 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5016 #endif
5017
5018 int
5019 main ()
5020 {
5021   int s;
5022   wait (&s);
5023   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5024   ;
5025   return 0;
5026 }
5027 _ACEOF
5028 rm -f conftest.$ac_objext
5029 if { (ac_try="$ac_compile"
5030 case "(($ac_try" in
5031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5032   *) ac_try_echo=$ac_try;;
5033 esac
5034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5035   (eval "$ac_compile") 2>conftest.er1
5036   ac_status=$?
5037   grep -v '^ *+' conftest.er1 >conftest.err
5038   rm -f conftest.er1
5039   cat conftest.err >&5
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); } && {
5042          test -z "$ac_c_werror_flag" ||
5043          test ! -s conftest.err
5044        } && test -s conftest.$ac_objext; then
5045   ac_cv_header_sys_wait_h=yes
5046 else
5047   echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5049
5050         ac_cv_header_sys_wait_h=no
5051 fi
5052
5053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5054 fi
5055 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5056 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
5057 if test $ac_cv_header_sys_wait_h = yes; then
5058
5059 cat >>confdefs.h <<\_ACEOF
5060 #define HAVE_SYS_WAIT_H 1
5061 _ACEOF
5062
5063 fi
5064
5065 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5076                   inttypes.h stdint.h unistd.h
5077 do
5078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5082   echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084   cat >conftest.$ac_ext <<_ACEOF
5085 /* confdefs.h.  */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h.  */
5090 $ac_includes_default
5091
5092 #include <$ac_header>
5093 _ACEOF
5094 rm -f conftest.$ac_objext
5095 if { (ac_try="$ac_compile"
5096 case "(($ac_try" in
5097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098   *) ac_try_echo=$ac_try;;
5099 esac
5100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5101   (eval "$ac_compile") 2>conftest.er1
5102   ac_status=$?
5103   grep -v '^ *+' conftest.er1 >conftest.err
5104   rm -f conftest.er1
5105   cat conftest.err >&5
5106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5107   (exit $ac_status); } && {
5108          test -z "$ac_c_werror_flag" ||
5109          test ! -s conftest.err
5110        } && test -s conftest.$ac_objext; then
5111   eval "$as_ac_Header=yes"
5112 else
5113   echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5115
5116         eval "$as_ac_Header=no"
5117 fi
5118
5119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5120 fi
5121 ac_res=`eval echo '${'$as_ac_Header'}'`
5122                { echo "$as_me:$LINENO: result: $ac_res" >&5
5123 echo "${ECHO_T}$ac_res" >&6; }
5124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5125   cat >>confdefs.h <<_ACEOF
5126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5127 _ACEOF
5128
5129 fi
5130
5131 done
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149 for ac_header in arpa/inet.h fcntl.h langinfo.h libintl.h limits.h locale.h mntent.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h termios.h unistd.h
5150 do
5151 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5153   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5156   echo $ECHO_N "(cached) $ECHO_C" >&6
5157 fi
5158 ac_res=`eval echo '${'$as_ac_Header'}'`
5159                { echo "$as_me:$LINENO: result: $ac_res" >&5
5160 echo "${ECHO_T}$ac_res" >&6; }
5161 else
5162   # Is the header compilable?
5163 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5164 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h.  */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h.  */
5171 $ac_includes_default
5172 #include <$ac_header>
5173 _ACEOF
5174 rm -f conftest.$ac_objext
5175 if { (ac_try="$ac_compile"
5176 case "(($ac_try" in
5177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178   *) ac_try_echo=$ac_try;;
5179 esac
5180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5181   (eval "$ac_compile") 2>conftest.er1
5182   ac_status=$?
5183   grep -v '^ *+' conftest.er1 >conftest.err
5184   rm -f conftest.er1
5185   cat conftest.err >&5
5186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187   (exit $ac_status); } && {
5188          test -z "$ac_c_werror_flag" ||
5189          test ! -s conftest.err
5190        } && test -s conftest.$ac_objext; then
5191   ac_header_compiler=yes
5192 else
5193   echo "$as_me: failed program was:" >&5
5194 sed 's/^/| /' conftest.$ac_ext >&5
5195
5196         ac_header_compiler=no
5197 fi
5198
5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5200 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5201 echo "${ECHO_T}$ac_header_compiler" >&6; }
5202
5203 # Is the header present?
5204 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5205 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5206 cat >conftest.$ac_ext <<_ACEOF
5207 /* confdefs.h.  */
5208 _ACEOF
5209 cat confdefs.h >>conftest.$ac_ext
5210 cat >>conftest.$ac_ext <<_ACEOF
5211 /* end confdefs.h.  */
5212 #include <$ac_header>
5213 _ACEOF
5214 if { (ac_try="$ac_cpp conftest.$ac_ext"
5215 case "(($ac_try" in
5216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5217   *) ac_try_echo=$ac_try;;
5218 esac
5219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5220   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5221   ac_status=$?
5222   grep -v '^ *+' conftest.er1 >conftest.err
5223   rm -f conftest.er1
5224   cat conftest.err >&5
5225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226   (exit $ac_status); } >/dev/null && {
5227          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5228          test ! -s conftest.err
5229        }; then
5230   ac_header_preproc=yes
5231 else
5232   echo "$as_me: failed program was:" >&5
5233 sed 's/^/| /' conftest.$ac_ext >&5
5234
5235   ac_header_preproc=no
5236 fi
5237
5238 rm -f conftest.err conftest.$ac_ext
5239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5240 echo "${ECHO_T}$ac_header_preproc" >&6; }
5241
5242 # So?  What about this header?
5243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5244   yes:no: )
5245     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5247     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5249     ac_header_preproc=yes
5250     ;;
5251   no:yes:* )
5252     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5254     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5255 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5256     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5258     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5259 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5260     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5262     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5264
5265     ;;
5266 esac
5267 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5270   echo $ECHO_N "(cached) $ECHO_C" >&6
5271 else
5272   eval "$as_ac_Header=\$ac_header_preproc"
5273 fi
5274 ac_res=`eval echo '${'$as_ac_Header'}'`
5275                { echo "$as_me:$LINENO: result: $ac_res" >&5
5276 echo "${ECHO_T}$ac_res" >&6; }
5277
5278 fi
5279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5280   cat >>confdefs.h <<_ACEOF
5281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5282 _ACEOF
5283
5284 fi
5285
5286 done
5287
5288
5289 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5290 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5291 if test "${ac_cv_c_const+set}" = set; then
5292   echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294   cat >conftest.$ac_ext <<_ACEOF
5295 /* confdefs.h.  */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h.  */
5300
5301 int
5302 main ()
5303 {
5304 /* FIXME: Include the comments suggested by Paul. */
5305 #ifndef __cplusplus
5306   /* Ultrix mips cc rejects this.  */
5307   typedef int charset[2];
5308   const charset cs;
5309   /* SunOS 4.1.1 cc rejects this.  */
5310   char const *const *pcpcc;
5311   char **ppc;
5312   /* NEC SVR4.0.2 mips cc rejects this.  */
5313   struct point {int x, y;};
5314   static struct point const zero = {0,0};
5315   /* AIX XL C 1.02.0.0 rejects this.
5316      It does not let you subtract one const X* pointer from another in
5317      an arm of an if-expression whose if-part is not a constant
5318      expression */
5319   const char *g = "string";
5320   pcpcc = &g + (g ? g-g : 0);
5321   /* HPUX 7.0 cc rejects these. */
5322   ++pcpcc;
5323   ppc = (char**) pcpcc;
5324   pcpcc = (char const *const *) ppc;
5325   { /* SCO 3.2v4 cc rejects this.  */
5326     char *t;
5327     char const *s = 0 ? (char *) 0 : (char const *) 0;
5328
5329     *t++ = 0;
5330     if (s) return 0;
5331   }
5332   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5333     int x[] = {25, 17};
5334     const int *foo = &x[0];
5335     ++foo;
5336   }
5337   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5338     typedef const int *iptr;
5339     iptr p = 0;
5340     ++p;
5341   }
5342   { /* AIX XL C 1.02.0.0 rejects this saying
5343        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5344     struct s { int j; const int *ap[3]; };
5345     struct s *b; b->j = 5;
5346   }
5347   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5348     const int foo = 10;
5349     if (!foo) return 0;
5350   }
5351   return !cs[0] && !zero.x;
5352 #endif
5353
5354   ;
5355   return 0;
5356 }
5357 _ACEOF
5358 rm -f conftest.$ac_objext
5359 if { (ac_try="$ac_compile"
5360 case "(($ac_try" in
5361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362   *) ac_try_echo=$ac_try;;
5363 esac
5364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365   (eval "$ac_compile") 2>conftest.er1
5366   ac_status=$?
5367   grep -v '^ *+' conftest.er1 >conftest.err
5368   rm -f conftest.er1
5369   cat conftest.err >&5
5370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371   (exit $ac_status); } && {
5372          test -z "$ac_c_werror_flag" ||
5373          test ! -s conftest.err
5374        } && test -s conftest.$ac_objext; then
5375   ac_cv_c_const=yes
5376 else
5377   echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5379
5380         ac_cv_c_const=no
5381 fi
5382
5383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 fi
5385 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5386 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5387 if test $ac_cv_c_const = no; then
5388
5389 cat >>confdefs.h <<\_ACEOF
5390 #define const
5391 _ACEOF
5392
5393 fi
5394
5395 { echo "$as_me:$LINENO: checking for pid_t" >&5
5396 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
5397 if test "${ac_cv_type_pid_t+set}" = set; then
5398   echo $ECHO_N "(cached) $ECHO_C" >&6
5399 else
5400   cat >conftest.$ac_ext <<_ACEOF
5401 /* confdefs.h.  */
5402 _ACEOF
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h.  */
5406 $ac_includes_default
5407 typedef pid_t ac__type_new_;
5408 int
5409 main ()
5410 {
5411 if ((ac__type_new_ *) 0)
5412   return 0;
5413 if (sizeof (ac__type_new_))
5414   return 0;
5415   ;
5416   return 0;
5417 }
5418 _ACEOF
5419 rm -f conftest.$ac_objext
5420 if { (ac_try="$ac_compile"
5421 case "(($ac_try" in
5422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5423   *) ac_try_echo=$ac_try;;
5424 esac
5425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5426   (eval "$ac_compile") 2>conftest.er1
5427   ac_status=$?
5428   grep -v '^ *+' conftest.er1 >conftest.err
5429   rm -f conftest.er1
5430   cat conftest.err >&5
5431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432   (exit $ac_status); } && {
5433          test -z "$ac_c_werror_flag" ||
5434          test ! -s conftest.err
5435        } && test -s conftest.$ac_objext; then
5436   ac_cv_type_pid_t=yes
5437 else
5438   echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5440
5441         ac_cv_type_pid_t=no
5442 fi
5443
5444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445 fi
5446 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5447 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
5448 if test $ac_cv_type_pid_t = yes; then
5449   :
5450 else
5451
5452 cat >>confdefs.h <<_ACEOF
5453 #define pid_t int
5454 _ACEOF
5455
5456 fi
5457
5458 { echo "$as_me:$LINENO: checking for size_t" >&5
5459 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5460 if test "${ac_cv_type_size_t+set}" = set; then
5461   echo $ECHO_N "(cached) $ECHO_C" >&6
5462 else
5463   cat >conftest.$ac_ext <<_ACEOF
5464 /* confdefs.h.  */
5465 _ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h.  */
5469 $ac_includes_default
5470 typedef size_t ac__type_new_;
5471 int
5472 main ()
5473 {
5474 if ((ac__type_new_ *) 0)
5475   return 0;
5476 if (sizeof (ac__type_new_))
5477   return 0;
5478   ;
5479   return 0;
5480 }
5481 _ACEOF
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5484 case "(($ac_try" in
5485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486   *) ac_try_echo=$ac_try;;
5487 esac
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489   (eval "$ac_compile") 2>conftest.er1
5490   ac_status=$?
5491   grep -v '^ *+' conftest.er1 >conftest.err
5492   rm -f conftest.er1
5493   cat conftest.err >&5
5494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); } && {
5496          test -z "$ac_c_werror_flag" ||
5497          test ! -s conftest.err
5498        } && test -s conftest.$ac_objext; then
5499   ac_cv_type_size_t=yes
5500 else
5501   echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5503
5504         ac_cv_type_size_t=no
5505 fi
5506
5507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508 fi
5509 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5510 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5511 if test $ac_cv_type_size_t = yes; then
5512   :
5513 else
5514
5515 cat >>confdefs.h <<_ACEOF
5516 #define size_t unsigned int
5517 _ACEOF
5518
5519 fi
5520
5521 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5522 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
5523 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5524   echo $ECHO_N "(cached) $ECHO_C" >&6
5525 else
5526   cat >conftest.$ac_ext <<_ACEOF
5527 /* confdefs.h.  */
5528 _ACEOF
5529 cat confdefs.h >>conftest.$ac_ext
5530 cat >>conftest.$ac_ext <<_ACEOF
5531 /* end confdefs.h.  */
5532 $ac_includes_default
5533 int
5534 main ()
5535 {
5536 static struct stat ac_aggr;
5537 if (ac_aggr.st_rdev)
5538 return 0;
5539   ;
5540   return 0;
5541 }
5542 _ACEOF
5543 rm -f conftest.$ac_objext
5544 if { (ac_try="$ac_compile"
5545 case "(($ac_try" in
5546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5547   *) ac_try_echo=$ac_try;;
5548 esac
5549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5550   (eval "$ac_compile") 2>conftest.er1
5551   ac_status=$?
5552   grep -v '^ *+' conftest.er1 >conftest.err
5553   rm -f conftest.er1
5554   cat conftest.err >&5
5555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556   (exit $ac_status); } && {
5557          test -z "$ac_c_werror_flag" ||
5558          test ! -s conftest.err
5559        } && test -s conftest.$ac_objext; then
5560   ac_cv_member_struct_stat_st_rdev=yes
5561 else
5562   echo "$as_me: failed program was:" >&5
5563 sed 's/^/| /' conftest.$ac_ext >&5
5564
5565         cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h.  */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h.  */
5571 $ac_includes_default
5572 int
5573 main ()
5574 {
5575 static struct stat ac_aggr;
5576 if (sizeof ac_aggr.st_rdev)
5577 return 0;
5578   ;
5579   return 0;
5580 }
5581 _ACEOF
5582 rm -f conftest.$ac_objext
5583 if { (ac_try="$ac_compile"
5584 case "(($ac_try" in
5585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586   *) ac_try_echo=$ac_try;;
5587 esac
5588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589   (eval "$ac_compile") 2>conftest.er1
5590   ac_status=$?
5591   grep -v '^ *+' conftest.er1 >conftest.err
5592   rm -f conftest.er1
5593   cat conftest.err >&5
5594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595   (exit $ac_status); } && {
5596          test -z "$ac_c_werror_flag" ||
5597          test ! -s conftest.err
5598        } && test -s conftest.$ac_objext; then
5599   ac_cv_member_struct_stat_st_rdev=yes
5600 else
5601   echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5603
5604         ac_cv_member_struct_stat_st_rdev=no
5605 fi
5606
5607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 fi
5609
5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611 fi
5612 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5613 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
5614 if test $ac_cv_member_struct_stat_st_rdev = yes; then
5615
5616 cat >>confdefs.h <<_ACEOF
5617 #define HAVE_STRUCT_STAT_ST_RDEV 1
5618 _ACEOF
5619
5620
5621 fi
5622
5623 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5624 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
5625 if test "${ac_cv_type_uid_t+set}" = set; then
5626   echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628   cat >conftest.$ac_ext <<_ACEOF
5629 /* confdefs.h.  */
5630 _ACEOF
5631 cat confdefs.h >>conftest.$ac_ext
5632 cat >>conftest.$ac_ext <<_ACEOF
5633 /* end confdefs.h.  */
5634 #include <sys/types.h>
5635
5636 _ACEOF
5637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5638   $EGREP "uid_t" >/dev/null 2>&1; then
5639   ac_cv_type_uid_t=yes
5640 else
5641   ac_cv_type_uid_t=no
5642 fi
5643 rm -f conftest*
5644
5645 fi
5646 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5647 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
5648 if test $ac_cv_type_uid_t = no; then
5649
5650 cat >>confdefs.h <<\_ACEOF
5651 #define uid_t int
5652 _ACEOF
5653
5654
5655 cat >>confdefs.h <<\_ACEOF
5656 #define gid_t int
5657 _ACEOF
5658
5659 fi
5660
5661 { echo "$as_me:$LINENO: checking for struct user_regs_struct.orig_eax" >&5
5662 echo $ECHO_N "checking for struct user_regs_struct.orig_eax... $ECHO_C" >&6; }
5663 if test "${ac_cv_member_struct_user_regs_struct_orig_eax+set}" = set; then
5664   echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666   cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h.  */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h.  */
5672 #include <linux/user.h>
5673
5674 int
5675 main ()
5676 {
5677 static struct user_regs_struct ac_aggr;
5678 if (ac_aggr.orig_eax)
5679 return 0;
5680   ;
5681   return 0;
5682 }
5683 _ACEOF
5684 rm -f conftest.$ac_objext
5685 if { (ac_try="$ac_compile"
5686 case "(($ac_try" in
5687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5688   *) ac_try_echo=$ac_try;;
5689 esac
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691   (eval "$ac_compile") 2>conftest.er1
5692   ac_status=$?
5693   grep -v '^ *+' conftest.er1 >conftest.err
5694   rm -f conftest.er1
5695   cat conftest.err >&5
5696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697   (exit $ac_status); } && {
5698          test -z "$ac_c_werror_flag" ||
5699          test ! -s conftest.err
5700        } && test -s conftest.$ac_objext; then
5701   ac_cv_member_struct_user_regs_struct_orig_eax=yes
5702 else
5703   echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5705
5706         cat >conftest.$ac_ext <<_ACEOF
5707 /* confdefs.h.  */
5708 _ACEOF
5709 cat confdefs.h >>conftest.$ac_ext
5710 cat >>conftest.$ac_ext <<_ACEOF
5711 /* end confdefs.h.  */
5712 #include <linux/user.h>
5713
5714 int
5715 main ()
5716 {
5717 static struct user_regs_struct ac_aggr;
5718 if (sizeof ac_aggr.orig_eax)
5719 return 0;
5720   ;
5721   return 0;
5722 }
5723 _ACEOF
5724 rm -f conftest.$ac_objext
5725 if { (ac_try="$ac_compile"
5726 case "(($ac_try" in
5727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728   *) ac_try_echo=$ac_try;;
5729 esac
5730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731   (eval "$ac_compile") 2>conftest.er1
5732   ac_status=$?
5733   grep -v '^ *+' conftest.er1 >conftest.err
5734   rm -f conftest.er1
5735   cat conftest.err >&5
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); } && {
5738          test -z "$ac_c_werror_flag" ||
5739          test ! -s conftest.err
5740        } && test -s conftest.$ac_objext; then
5741   ac_cv_member_struct_user_regs_struct_orig_eax=yes
5742 else
5743   echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5745
5746         ac_cv_member_struct_user_regs_struct_orig_eax=no
5747 fi
5748
5749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 fi
5751
5752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753 fi
5754 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_user_regs_struct_orig_eax" >&5
5755 echo "${ECHO_T}$ac_cv_member_struct_user_regs_struct_orig_eax" >&6; }
5756 if test $ac_cv_member_struct_user_regs_struct_orig_eax = yes; then
5757
5758 cat >>confdefs.h <<_ACEOF
5759 #define HAVE_STRUCT_USER_REGS_STRUCT_ORIG_EAX 1
5760 _ACEOF
5761
5762
5763 fi
5764 { echo "$as_me:$LINENO: checking for struct user_regs_struct.eax" >&5
5765 echo $ECHO_N "checking for struct user_regs_struct.eax... $ECHO_C" >&6; }
5766 if test "${ac_cv_member_struct_user_regs_struct_eax+set}" = set; then
5767   echo $ECHO_N "(cached) $ECHO_C" >&6
5768 else
5769   cat >conftest.$ac_ext <<_ACEOF
5770 /* confdefs.h.  */
5771 _ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h.  */
5775 #include <linux/user.h>
5776
5777 int
5778 main ()
5779 {
5780 static struct user_regs_struct ac_aggr;
5781 if (ac_aggr.eax)
5782 return 0;
5783   ;
5784   return 0;
5785 }
5786 _ACEOF
5787 rm -f conftest.$ac_objext
5788 if { (ac_try="$ac_compile"
5789 case "(($ac_try" in
5790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5791   *) ac_try_echo=$ac_try;;
5792 esac
5793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5794   (eval "$ac_compile") 2>conftest.er1
5795   ac_status=$?
5796   grep -v '^ *+' conftest.er1 >conftest.err
5797   rm -f conftest.er1
5798   cat conftest.err >&5
5799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5800   (exit $ac_status); } && {
5801          test -z "$ac_c_werror_flag" ||
5802          test ! -s conftest.err
5803        } && test -s conftest.$ac_objext; then
5804   ac_cv_member_struct_user_regs_struct_eax=yes
5805 else
5806   echo "$as_me: failed program was:" >&5
5807 sed 's/^/| /' conftest.$ac_ext >&5
5808
5809         cat >conftest.$ac_ext <<_ACEOF
5810 /* confdefs.h.  */
5811 _ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h.  */
5815 #include <linux/user.h>
5816
5817 int
5818 main ()
5819 {
5820 static struct user_regs_struct ac_aggr;
5821 if (sizeof ac_aggr.eax)
5822 return 0;
5823   ;
5824   return 0;
5825 }
5826 _ACEOF
5827 rm -f conftest.$ac_objext
5828 if { (ac_try="$ac_compile"
5829 case "(($ac_try" in
5830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831   *) ac_try_echo=$ac_try;;
5832 esac
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834   (eval "$ac_compile") 2>conftest.er1
5835   ac_status=$?
5836   grep -v '^ *+' conftest.er1 >conftest.err
5837   rm -f conftest.er1
5838   cat conftest.err >&5
5839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); } && {
5841          test -z "$ac_c_werror_flag" ||
5842          test ! -s conftest.err
5843        } && test -s conftest.$ac_objext; then
5844   ac_cv_member_struct_user_regs_struct_eax=yes
5845 else
5846   echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5848
5849         ac_cv_member_struct_user_regs_struct_eax=no
5850 fi
5851
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 fi
5854
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856 fi
5857 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_user_regs_struct_eax" >&5
5858 echo "${ECHO_T}$ac_cv_member_struct_user_regs_struct_eax" >&6; }
5859 if test $ac_cv_member_struct_user_regs_struct_eax = yes; then
5860
5861 cat >>confdefs.h <<_ACEOF
5862 #define HAVE_STRUCT_USER_REGS_STRUCT_EAX 1
5863 _ACEOF
5864
5865
5866 fi
5867 { echo "$as_me:$LINENO: checking for struct user_regs_struct.ebx" >&5
5868 echo $ECHO_N "checking for struct user_regs_struct.ebx... $ECHO_C" >&6; }
5869 if test "${ac_cv_member_struct_user_regs_struct_ebx+set}" = set; then
5870   echo $ECHO_N "(cached) $ECHO_C" >&6
5871 else
5872   cat >conftest.$ac_ext <<_ACEOF
5873 /* confdefs.h.  */
5874 _ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h.  */
5878 #include <linux/user.h>
5879
5880 int
5881 main ()
5882 {
5883 static struct user_regs_struct ac_aggr;
5884 if (ac_aggr.ebx)
5885 return 0;
5886   ;
5887   return 0;
5888 }
5889 _ACEOF
5890 rm -f conftest.$ac_objext
5891 if { (ac_try="$ac_compile"
5892 case "(($ac_try" in
5893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894   *) ac_try_echo=$ac_try;;
5895 esac
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897   (eval "$ac_compile") 2>conftest.er1
5898   ac_status=$?
5899   grep -v '^ *+' conftest.er1 >conftest.err
5900   rm -f conftest.er1
5901   cat conftest.err >&5
5902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903   (exit $ac_status); } && {
5904          test -z "$ac_c_werror_flag" ||
5905          test ! -s conftest.err
5906        } && test -s conftest.$ac_objext; then
5907   ac_cv_member_struct_user_regs_struct_ebx=yes
5908 else
5909   echo "$as_me: failed program was:" >&5
5910 sed 's/^/| /' conftest.$ac_ext >&5
5911
5912         cat >conftest.$ac_ext <<_ACEOF
5913 /* confdefs.h.  */
5914 _ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h.  */
5918 #include <linux/user.h>
5919
5920 int
5921 main ()
5922 {
5923 static struct user_regs_struct ac_aggr;
5924 if (sizeof ac_aggr.ebx)
5925 return 0;
5926   ;
5927   return 0;
5928 }
5929 _ACEOF
5930 rm -f conftest.$ac_objext
5931 if { (ac_try="$ac_compile"
5932 case "(($ac_try" in
5933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934   *) ac_try_echo=$ac_try;;
5935 esac
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937   (eval "$ac_compile") 2>conftest.er1
5938   ac_status=$?
5939   grep -v '^ *+' conftest.er1 >conftest.err
5940   rm -f conftest.er1
5941   cat conftest.err >&5
5942   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_objext; then
5947   ac_cv_member_struct_user_regs_struct_ebx=yes
5948 else
5949   echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5951
5952         ac_cv_member_struct_user_regs_struct_ebx=no
5953 fi
5954
5955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956 fi
5957
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959 fi
5960 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_user_regs_struct_ebx" >&5
5961 echo "${ECHO_T}$ac_cv_member_struct_user_regs_struct_ebx" >&6; }
5962 if test $ac_cv_member_struct_user_regs_struct_ebx = yes; then
5963
5964 cat >>confdefs.h <<_ACEOF
5965 #define HAVE_STRUCT_USER_REGS_STRUCT_EBX 1
5966 _ACEOF
5967
5968
5969 fi
5970 { echo "$as_me:$LINENO: checking for struct user_regs_struct.ecx" >&5
5971 echo $ECHO_N "checking for struct user_regs_struct.ecx... $ECHO_C" >&6; }
5972 if test "${ac_cv_member_struct_user_regs_struct_ecx+set}" = set; then
5973   echo $ECHO_N "(cached) $ECHO_C" >&6
5974 else
5975   cat >conftest.$ac_ext <<_ACEOF
5976 /* confdefs.h.  */
5977 _ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h.  */
5981 #include <linux/user.h>
5982
5983 int
5984 main ()
5985 {
5986 static struct user_regs_struct ac_aggr;
5987 if (ac_aggr.ecx)
5988 return 0;
5989   ;
5990   return 0;
5991 }
5992 _ACEOF
5993 rm -f conftest.$ac_objext
5994 if { (ac_try="$ac_compile"
5995 case "(($ac_try" in
5996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997   *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000   (eval "$ac_compile") 2>conftest.er1
6001   ac_status=$?
6002   grep -v '^ *+' conftest.er1 >conftest.err
6003   rm -f conftest.er1
6004   cat conftest.err >&5
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); } && {
6007          test -z "$ac_c_werror_flag" ||
6008          test ! -s conftest.err
6009        } && test -s conftest.$ac_objext; then
6010   ac_cv_member_struct_user_regs_struct_ecx=yes
6011 else
6012   echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015         cat >conftest.$ac_ext <<_ACEOF
6016 /* confdefs.h.  */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h.  */
6021 #include <linux/user.h>
6022
6023 int
6024 main ()
6025 {
6026 static struct user_regs_struct ac_aggr;
6027 if (sizeof ac_aggr.ecx)
6028 return 0;
6029   ;
6030   return 0;
6031 }
6032 _ACEOF
6033 rm -f conftest.$ac_objext
6034 if { (ac_try="$ac_compile"
6035 case "(($ac_try" in
6036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037   *) ac_try_echo=$ac_try;;
6038 esac
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040   (eval "$ac_compile") 2>conftest.er1
6041   ac_status=$?
6042   grep -v '^ *+' conftest.er1 >conftest.err
6043   rm -f conftest.er1
6044   cat conftest.err >&5
6045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046   (exit $ac_status); } && {
6047          test -z "$ac_c_werror_flag" ||
6048          test ! -s conftest.err
6049        } && test -s conftest.$ac_objext; then
6050   ac_cv_member_struct_user_regs_struct_ecx=yes
6051 else
6052   echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6054
6055         ac_cv_member_struct_user_regs_struct_ecx=no
6056 fi
6057
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059 fi
6060
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062 fi
6063 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_user_regs_struct_ecx" >&5
6064 echo "${ECHO_T}$ac_cv_member_struct_user_regs_struct_ecx" >&6; }
6065 if test $ac_cv_member_struct_user_regs_struct_ecx = yes; then
6066
6067 cat >>confdefs.h <<_ACEOF
6068 #define HAVE_STRUCT_USER_REGS_STRUCT_ECX 1
6069 _ACEOF
6070
6071
6072 fi
6073 { echo "$as_me:$LINENO: checking for struct user_regs_struct.edx" >&5
6074 echo $ECHO_N "checking for struct user_regs_struct.edx... $ECHO_C" >&6; }
6075 if test "${ac_cv_member_struct_user_regs_struct_edx+set}" = set; then
6076   echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078   cat >conftest.$ac_ext <<_ACEOF
6079 /* confdefs.h.  */
6080 _ACEOF
6081 cat confdefs.h >>conftest.$ac_ext
6082 cat >>conftest.$ac_ext <<_ACEOF
6083 /* end confdefs.h.  */
6084 #include <linux/user.h>
6085
6086 int
6087 main ()
6088 {
6089 static struct user_regs_struct ac_aggr;
6090 if (ac_aggr.edx)
6091 return 0;
6092   ;
6093   return 0;
6094 }
6095 _ACEOF
6096 rm -f conftest.$ac_objext
6097 if { (ac_try="$ac_compile"
6098 case "(($ac_try" in
6099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6100   *) ac_try_echo=$ac_try;;
6101 esac
6102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6103   (eval "$ac_compile") 2>conftest.er1
6104   ac_status=$?
6105   grep -v '^ *+' conftest.er1 >conftest.err
6106   rm -f conftest.er1
6107   cat conftest.err >&5
6108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109   (exit $ac_status); } && {
6110          test -z "$ac_c_werror_flag" ||
6111          test ! -s conftest.err
6112        } && test -s conftest.$ac_objext; then
6113   ac_cv_member_struct_user_regs_struct_edx=yes
6114 else
6115   echo "$as_me: failed program was:" >&5
6116 sed 's/^/| /' conftest.$ac_ext >&5
6117
6118         cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h.  */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h.  */
6124 #include <linux/user.h>
6125
6126 int
6127 main ()
6128 {
6129 static struct user_regs_struct ac_aggr;
6130 if (sizeof ac_aggr.edx)
6131 return 0;
6132   ;
6133   return 0;
6134 }
6135 _ACEOF
6136 rm -f conftest.$ac_objext
6137 if { (ac_try="$ac_compile"
6138 case "(($ac_try" in
6139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140   *) ac_try_echo=$ac_try;;
6141 esac
6142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143   (eval "$ac_compile") 2>conftest.er1
6144   ac_status=$?
6145   grep -v '^ *+' conftest.er1 >conftest.err
6146   rm -f conftest.er1
6147   cat conftest.err >&5
6148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149   (exit $ac_status); } && {
6150          test -z "$ac_c_werror_flag" ||
6151          test ! -s conftest.err
6152        } && test -s conftest.$ac_objext; then
6153   ac_cv_member_struct_user_regs_struct_edx=yes
6154 else
6155   echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158         ac_cv_member_struct_user_regs_struct_edx=no
6159 fi
6160
6161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162 fi
6163
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 fi
6166 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_user_regs_struct_edx" >&5
6167 echo "${ECHO_T}$ac_cv_member_struct_user_regs_struct_edx" >&6; }
6168 if test $ac_cv_member_struct_user_regs_struct_edx = yes; then
6169
6170 cat >>confdefs.h <<_ACEOF
6171 #define HAVE_STRUCT_USER_REGS_STRUCT_EDX 1
6172 _ACEOF
6173
6174
6175 fi
6176 { echo "$as_me:$LINENO: checking for struct user_regs_struct.orig_rax" >&5
6177 echo $ECHO_N "checking for struct user_regs_struct.orig_rax... $ECHO_C" >&6; }
6178 if test "${ac_cv_member_struct_user_regs_struct_orig_rax+set}" = set; then
6179   echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181   cat >conftest.$ac_ext <<_ACEOF
6182 /* confdefs.h.  */
6183 _ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h.  */
6187 #include <linux/user.h>
6188
6189 int
6190 main ()
6191 {
6192 static struct user_regs_struct ac_aggr;
6193 if (ac_aggr.orig_rax)
6194 return 0;
6195   ;
6196   return 0;
6197 }
6198 _ACEOF
6199 rm -f conftest.$ac_objext
6200 if { (ac_try="$ac_compile"
6201 case "(($ac_try" in
6202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203   *) ac_try_echo=$ac_try;;
6204 esac
6205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206   (eval "$ac_compile") 2>conftest.er1
6207   ac_status=$?
6208   grep -v '^ *+' conftest.er1 >conftest.err
6209   rm -f conftest.er1
6210   cat conftest.err >&5
6211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212   (exit $ac_status); } && {
6213          test -z "$ac_c_werror_flag" ||
6214          test ! -s conftest.err
6215        } && test -s conftest.$ac_objext; then
6216   ac_cv_member_struct_user_regs_struct_orig_rax=yes
6217 else
6218   echo "$as_me: failed program was:" >&5
6219 sed 's/^/| /' conftest.$ac_ext >&5
6220
6221         cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h.  */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h.  */
6227 #include <linux/user.h>
6228
6229 int
6230 main ()
6231 {
6232 static struct user_regs_struct ac_aggr;
6233 if (sizeof ac_aggr.orig_rax)
6234 return 0;
6235   ;
6236   return 0;
6237 }
6238 _ACEOF
6239 rm -f conftest.$ac_objext
6240 if { (ac_try="$ac_compile"
6241 case "(($ac_try" in
6242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6243   *) ac_try_echo=$ac_try;;
6244 esac
6245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6246   (eval "$ac_compile") 2>conftest.er1
6247   ac_status=$?
6248   grep -v '^ *+' conftest.er1 >conftest.err
6249   rm -f conftest.er1
6250   cat conftest.err >&5
6251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6252   (exit $ac_status); } && {
6253          test -z "$ac_c_werror_flag" ||
6254          test ! -s conftest.err
6255        } && test -s conftest.$ac_objext; then
6256   ac_cv_member_struct_user_regs_struct_orig_rax=yes
6257 else
6258   echo "$as_me: failed program was:" >&5
6259 sed 's/^/| /' conftest.$ac_ext >&5
6260
6261         ac_cv_member_struct_user_regs_struct_orig_rax=no
6262 fi
6263
6264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6265 fi
6266
6267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6268 fi
6269 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_user_regs_struct_orig_rax" >&5
6270 echo "${ECHO_T}$ac_cv_member_struct_user_regs_struct_orig_rax" >&6; }
6271 if test $ac_cv_member_struct_user_regs_struct_orig_rax = yes; then
6272
6273 cat >>confdefs.h <<_ACEOF
6274 #define HAVE_STRUCT_USER_REGS_STRUCT_ORIG_RAX 1
6275 _ACEOF
6276
6277
6278 fi
6279 { echo "$as_me:$LINENO: checking for struct user_regs_struct.rax" >&5
6280 echo $ECHO_N "checking for struct user_regs_struct.rax... $ECHO_C" >&6; }
6281 if test "${ac_cv_member_struct_user_regs_struct_rax+set}" = set; then
6282   echo $ECHO_N "(cached) $ECHO_C" >&6
6283 else
6284   cat >conftest.$ac_ext <<_ACEOF
6285 /* confdefs.h.  */
6286 _ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h.  */
6290 #include <linux/user.h>
6291
6292 int
6293 main ()
6294 {
6295 static struct user_regs_struct ac_aggr;
6296 if (ac_aggr.rax)
6297 return 0;
6298   ;
6299   return 0;
6300 }
6301 _ACEOF
6302 rm -f conftest.$ac_objext
6303 if { (ac_try="$ac_compile"
6304 case "(($ac_try" in
6305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306   *) ac_try_echo=$ac_try;;
6307 esac
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309   (eval "$ac_compile") 2>conftest.er1
6310   ac_status=$?
6311   grep -v '^ *+' conftest.er1 >conftest.err
6312   rm -f conftest.er1
6313   cat conftest.err >&5
6314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315   (exit $ac_status); } && {
6316          test -z "$ac_c_werror_flag" ||
6317          test ! -s conftest.err
6318        } && test -s conftest.$ac_objext; then
6319   ac_cv_member_struct_user_regs_struct_rax=yes
6320 else
6321   echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6323
6324         cat >conftest.$ac_ext <<_ACEOF
6325 /* confdefs.h.  */
6326 _ACEOF
6327 cat confdefs.h >>conftest.$ac_ext
6328 cat >>conftest.$ac_ext <<_ACEOF
6329 /* end confdefs.h.  */
6330 #include <linux/user.h>
6331
6332 int
6333 main ()
6334 {
6335 static struct user_regs_struct ac_aggr;
6336 if (sizeof ac_aggr.rax)
6337 return 0;
6338   ;
6339   return 0;
6340 }
6341 _ACEOF
6342 rm -f conftest.$ac_objext
6343 if { (ac_try="$ac_compile"
6344 case "(($ac_try" in
6345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346   *) ac_try_echo=$ac_try;;
6347 esac
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349   (eval "$ac_compile") 2>conftest.er1
6350   ac_status=$?
6351   grep -v '^ *+' conftest.er1 >conftest.err
6352   rm -f conftest.er1
6353   cat conftest.err >&5
6354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355   (exit $ac_status); } && {
6356          test -z "$ac_c_werror_flag" ||
6357          test ! -s conftest.err
6358        } && test -s conftest.$ac_objext; then
6359   ac_cv_member_struct_user_regs_struct_rax=yes
6360 else
6361   echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6363
6364         ac_cv_member_struct_user_regs_struct_rax=no
6365 fi
6366
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 fi
6369
6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371 fi
6372 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_user_regs_struct_rax" >&5
6373 echo "${ECHO_T}$ac_cv_member_struct_user_regs_struct_rax" >&6; }
6374 if test $ac_cv_member_struct_user_regs_struct_rax = yes; then
6375
6376 cat >>confdefs.h <<_ACEOF
6377 #define HAVE_STRUCT_USER_REGS_STRUCT_RAX 1
6378 _ACEOF
6379
6380
6381 fi
6382 { echo "$as_me:$LINENO: checking for struct user_regs_struct.rdi" >&5
6383 echo $ECHO_N "checking for struct user_regs_struct.rdi... $ECHO_C" >&6; }
6384 if test "${ac_cv_member_struct_user_regs_struct_rdi+set}" = set; then
6385   echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387   cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h.  */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h.  */
6393 #include <linux/user.h>
6394
6395 int
6396 main ()
6397 {
6398 static struct user_regs_struct ac_aggr;
6399 if (ac_aggr.rdi)
6400 return 0;
6401   ;
6402   return 0;
6403 }
6404 _ACEOF
6405 rm -f conftest.$ac_objext
6406 if { (ac_try="$ac_compile"
6407 case "(($ac_try" in
6408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409   *) ac_try_echo=$ac_try;;
6410 esac
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412   (eval "$ac_compile") 2>conftest.er1
6413   ac_status=$?
6414   grep -v '^ *+' conftest.er1 >conftest.err
6415   rm -f conftest.er1
6416   cat conftest.err >&5
6417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418   (exit $ac_status); } && {
6419          test -z "$ac_c_werror_flag" ||
6420          test ! -s conftest.err
6421        } && test -s conftest.$ac_objext; then
6422   ac_cv_member_struct_user_regs_struct_rdi=yes
6423 else
6424   echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6426
6427         cat >conftest.$ac_ext <<_ACEOF
6428 /* confdefs.h.  */
6429 _ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h.  */
6433 #include <linux/user.h>
6434
6435 int
6436 main ()
6437 {
6438 static struct user_regs_struct ac_aggr;
6439 if (sizeof ac_aggr.rdi)
6440 return 0;
6441   ;
6442   return 0;
6443 }
6444 _ACEOF
6445 rm -f conftest.$ac_objext
6446 if { (ac_try="$ac_compile"
6447 case "(($ac_try" in
6448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449   *) ac_try_echo=$ac_try;;
6450 esac
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452   (eval "$ac_compile") 2>conftest.er1
6453   ac_status=$?
6454   grep -v '^ *+' conftest.er1 >conftest.err
6455   rm -f conftest.er1
6456   cat conftest.err >&5
6457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458   (exit $ac_status); } && {
6459          test -z "$ac_c_werror_flag" ||
6460          test ! -s conftest.err
6461        } && test -s conftest.$ac_objext; then
6462   ac_cv_member_struct_user_regs_struct_rdi=yes
6463 else
6464   echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6466
6467         ac_cv_member_struct_user_regs_struct_rdi=no
6468 fi
6469
6470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471 fi
6472
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474 fi
6475 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_user_regs_struct_rdi" >&5
6476 echo "${ECHO_T}$ac_cv_member_struct_user_regs_struct_rdi" >&6; }
6477 if test $ac_cv_member_struct_user_regs_struct_rdi = yes; then
6478
6479 cat >>confdefs.h <<_ACEOF
6480 #define HAVE_STRUCT_USER_REGS_STRUCT_RDI 1
6481 _ACEOF
6482
6483
6484 fi
6485 { echo "$as_me:$LINENO: checking for struct user_regs_struct.rsi" >&5
6486 echo $ECHO_N "checking for struct user_regs_struct.rsi... $ECHO_C" >&6; }
6487 if test "${ac_cv_member_struct_user_regs_struct_rsi+set}" = set; then
6488   echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490   cat >conftest.$ac_ext <<_ACEOF
6491 /* confdefs.h.  */
6492 _ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h.  */
6496 #include <linux/user.h>
6497
6498 int
6499 main ()
6500 {
6501 static struct user_regs_struct ac_aggr;
6502 if (ac_aggr.rsi)
6503 return 0;
6504   ;
6505   return 0;
6506 }
6507 _ACEOF
6508 rm -f conftest.$ac_objext
6509 if { (ac_try="$ac_compile"
6510 case "(($ac_try" in
6511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512   *) ac_try_echo=$ac_try;;
6513 esac
6514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515   (eval "$ac_compile") 2>conftest.er1
6516   ac_status=$?
6517   grep -v '^ *+' conftest.er1 >conftest.err
6518   rm -f conftest.er1
6519   cat conftest.err >&5
6520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521   (exit $ac_status); } && {
6522          test -z "$ac_c_werror_flag" ||
6523          test ! -s conftest.err
6524        } && test -s conftest.$ac_objext; then
6525   ac_cv_member_struct_user_regs_struct_rsi=yes
6526 else
6527   echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6529
6530         cat >conftest.$ac_ext <<_ACEOF
6531 /* confdefs.h.  */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h.  */
6536 #include <linux/user.h>
6537
6538 int
6539 main ()
6540 {
6541 static struct user_regs_struct ac_aggr;
6542 if (sizeof ac_aggr.rsi)
6543 return 0;
6544   ;
6545   return 0;
6546 }
6547 _ACEOF
6548 rm -f conftest.$ac_objext
6549 if { (ac_try="$ac_compile"
6550 case "(($ac_try" in
6551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6552   *) ac_try_echo=$ac_try;;
6553 esac
6554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6555   (eval "$ac_compile") 2>conftest.er1
6556   ac_status=$?
6557   grep -v '^ *+' conftest.er1 >conftest.err
6558   rm -f conftest.er1
6559   cat conftest.err >&5
6560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561   (exit $ac_status); } && {
6562          test -z "$ac_c_werror_flag" ||
6563          test ! -s conftest.err
6564        } && test -s conftest.$ac_objext; then
6565   ac_cv_member_struct_user_regs_struct_rsi=yes
6566 else
6567   echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6569
6570         ac_cv_member_struct_user_regs_struct_rsi=no
6571 fi
6572
6573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6574 fi
6575
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6577 fi
6578 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_user_regs_struct_rsi" >&5
6579 echo "${ECHO_T}$ac_cv_member_struct_user_regs_struct_rsi" >&6; }
6580 if test $ac_cv_member_struct_user_regs_struct_rsi = yes; then
6581
6582 cat >>confdefs.h <<_ACEOF
6583 #define HAVE_STRUCT_USER_REGS_STRUCT_RSI 1
6584 _ACEOF
6585
6586
6587 fi
6588 { echo "$as_me:$LINENO: checking for struct user_regs_struct.rdx" >&5
6589 echo $ECHO_N "checking for struct user_regs_struct.rdx... $ECHO_C" >&6; }
6590 if test "${ac_cv_member_struct_user_regs_struct_rdx+set}" = set; then
6591   echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593   cat >conftest.$ac_ext <<_ACEOF
6594 /* confdefs.h.  */
6595 _ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h.  */
6599 #include <linux/user.h>
6600
6601 int
6602 main ()
6603 {
6604 static struct user_regs_struct ac_aggr;
6605 if (ac_aggr.rdx)
6606 return 0;
6607   ;
6608   return 0;
6609 }
6610 _ACEOF
6611 rm -f conftest.$ac_objext
6612 if { (ac_try="$ac_compile"
6613 case "(($ac_try" in
6614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6615   *) ac_try_echo=$ac_try;;
6616 esac
6617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6618   (eval "$ac_compile") 2>conftest.er1
6619   ac_status=$?
6620   grep -v '^ *+' conftest.er1 >conftest.err
6621   rm -f conftest.er1
6622   cat conftest.err >&5
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); } && {
6625          test -z "$ac_c_werror_flag" ||
6626          test ! -s conftest.err
6627        } && test -s conftest.$ac_objext; then
6628   ac_cv_member_struct_user_regs_struct_rdx=yes
6629 else
6630   echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6632
6633         cat >conftest.$ac_ext <<_ACEOF
6634 /* confdefs.h.  */
6635 _ACEOF
6636 cat confdefs.h >>conftest.$ac_ext
6637 cat >>conftest.$ac_ext <<_ACEOF
6638 /* end confdefs.h.  */
6639 #include <linux/user.h>
6640
6641 int
6642 main ()
6643 {
6644 static struct user_regs_struct ac_aggr;
6645 if (sizeof ac_aggr.rdx)
6646 return 0;
6647   ;
6648   return 0;
6649 }
6650 _ACEOF
6651 rm -f conftest.$ac_objext
6652 if { (ac_try="$ac_compile"
6653 case "(($ac_try" in
6654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655   *) ac_try_echo=$ac_try;;
6656 esac
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658   (eval "$ac_compile") 2>conftest.er1
6659   ac_status=$?
6660   grep -v '^ *+' conftest.er1 >conftest.err
6661   rm -f conftest.er1
6662   cat conftest.err >&5
6663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664   (exit $ac_status); } && {
6665          test -z "$ac_c_werror_flag" ||
6666          test ! -s conftest.err
6667        } && test -s conftest.$ac_objext; then
6668   ac_cv_member_struct_user_regs_struct_rdx=yes
6669 else
6670   echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6672
6673         ac_cv_member_struct_user_regs_struct_rdx=no
6674 fi
6675
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677 fi
6678
6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 fi
6681 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_user_regs_struct_rdx" >&5
6682 echo "${ECHO_T}$ac_cv_member_struct_user_regs_struct_rdx" >&6; }
6683 if test $ac_cv_member_struct_user_regs_struct_rdx = yes; then
6684
6685 cat >>confdefs.h <<_ACEOF
6686 #define HAVE_STRUCT_USER_REGS_STRUCT_RDX 1
6687 _ACEOF
6688
6689
6690 fi
6691
6692 { echo "$as_me:$LINENO: checking for struct pt_regs.orig_gpr3" >&5
6693 echo $ECHO_N "checking for struct pt_regs.orig_gpr3... $ECHO_C" >&6; }
6694 if test "${ac_cv_member_struct_pt_regs_orig_gpr3+set}" = set; then
6695   echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697   cat >conftest.$ac_ext <<_ACEOF
6698 /* confdefs.h.  */
6699 _ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h.  */
6703 #include <linux/ptrace.h>
6704
6705 int
6706 main ()
6707 {
6708 static struct pt_regs ac_aggr;
6709 if (ac_aggr.orig_gpr3)
6710 return 0;
6711   ;
6712   return 0;
6713 }
6714 _ACEOF
6715 rm -f conftest.$ac_objext
6716 if { (ac_try="$ac_compile"
6717 case "(($ac_try" in
6718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6719   *) ac_try_echo=$ac_try;;
6720 esac
6721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6722   (eval "$ac_compile") 2>conftest.er1
6723   ac_status=$?
6724   grep -v '^ *+' conftest.er1 >conftest.err
6725   rm -f conftest.er1
6726   cat conftest.err >&5
6727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728   (exit $ac_status); } && {
6729          test -z "$ac_c_werror_flag" ||
6730          test ! -s conftest.err
6731        } && test -s conftest.$ac_objext; then
6732   ac_cv_member_struct_pt_regs_orig_gpr3=yes
6733 else
6734   echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6736
6737         cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h.  */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h.  */
6743 #include <linux/ptrace.h>
6744
6745 int
6746 main ()
6747 {
6748 static struct pt_regs ac_aggr;
6749 if (sizeof ac_aggr.orig_gpr3)
6750 return 0;
6751   ;
6752   return 0;
6753 }
6754 _ACEOF
6755 rm -f conftest.$ac_objext
6756 if { (ac_try="$ac_compile"
6757 case "(($ac_try" in
6758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6759   *) ac_try_echo=$ac_try;;
6760 esac
6761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6762   (eval "$ac_compile") 2>conftest.er1
6763   ac_status=$?
6764   grep -v '^ *+' conftest.er1 >conftest.err
6765   rm -f conftest.er1
6766   cat conftest.err >&5
6767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768   (exit $ac_status); } && {
6769          test -z "$ac_c_werror_flag" ||
6770          test ! -s conftest.err
6771        } && test -s conftest.$ac_objext; then
6772   ac_cv_member_struct_pt_regs_orig_gpr3=yes
6773 else
6774   echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6776
6777         ac_cv_member_struct_pt_regs_orig_gpr3=no
6778 fi
6779
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781 fi
6782
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784 fi
6785 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_pt_regs_orig_gpr3" >&5
6786 echo "${ECHO_T}$ac_cv_member_struct_pt_regs_orig_gpr3" >&6; }
6787 if test $ac_cv_member_struct_pt_regs_orig_gpr3 = yes; then
6788
6789 cat >>confdefs.h <<_ACEOF
6790 #define HAVE_STRUCT_PT_REGS_ORIG_GPR3 1
6791 _ACEOF
6792
6793
6794 fi
6795 { echo "$as_me:$LINENO: checking for struct pt_regs.gpr" >&5
6796 echo $ECHO_N "checking for struct pt_regs.gpr... $ECHO_C" >&6; }
6797 if test "${ac_cv_member_struct_pt_regs_gpr+set}" = set; then
6798   echo $ECHO_N "(cached) $ECHO_C" >&6
6799 else
6800   cat >conftest.$ac_ext <<_ACEOF
6801 /* confdefs.h.  */
6802 _ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h.  */
6806 #include <linux/ptrace.h>
6807
6808 int
6809 main ()
6810 {
6811 static struct pt_regs ac_aggr;
6812 if (ac_aggr.gpr)
6813 return 0;
6814   ;
6815   return 0;
6816 }
6817 _ACEOF
6818 rm -f conftest.$ac_objext
6819 if { (ac_try="$ac_compile"
6820 case "(($ac_try" in
6821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822   *) ac_try_echo=$ac_try;;
6823 esac
6824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6825   (eval "$ac_compile") 2>conftest.er1
6826   ac_status=$?
6827   grep -v '^ *+' conftest.er1 >conftest.err
6828   rm -f conftest.er1
6829   cat conftest.err >&5
6830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831   (exit $ac_status); } && {
6832          test -z "$ac_c_werror_flag" ||
6833          test ! -s conftest.err
6834        } && test -s conftest.$ac_objext; then
6835   ac_cv_member_struct_pt_regs_gpr=yes
6836 else
6837   echo "$as_me: failed program was:" >&5
6838 sed 's/^/| /' conftest.$ac_ext >&5
6839
6840         cat >conftest.$ac_ext <<_ACEOF
6841 /* confdefs.h.  */
6842 _ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h.  */
6846 #include <linux/ptrace.h>
6847
6848 int
6849 main ()
6850 {
6851 static struct pt_regs ac_aggr;
6852 if (sizeof ac_aggr.gpr)
6853 return 0;
6854   ;
6855   return 0;
6856 }
6857 _ACEOF
6858 rm -f conftest.$ac_objext
6859 if { (ac_try="$ac_compile"
6860 case "(($ac_try" in
6861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6862   *) ac_try_echo=$ac_try;;
6863 esac
6864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6865   (eval "$ac_compile") 2>conftest.er1
6866   ac_status=$?
6867   grep -v '^ *+' conftest.er1 >conftest.err
6868   rm -f conftest.er1
6869   cat conftest.err >&5
6870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871   (exit $ac_status); } && {
6872          test -z "$ac_c_werror_flag" ||
6873          test ! -s conftest.err
6874        } && test -s conftest.$ac_objext; then
6875   ac_cv_member_struct_pt_regs_gpr=yes
6876 else
6877   echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6879
6880         ac_cv_member_struct_pt_regs_gpr=no
6881 fi
6882
6883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884 fi
6885
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 fi
6888 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_pt_regs_gpr" >&5
6889 echo "${ECHO_T}$ac_cv_member_struct_pt_regs_gpr" >&6; }
6890 if test $ac_cv_member_struct_pt_regs_gpr = yes; then
6891
6892 cat >>confdefs.h <<_ACEOF
6893 #define HAVE_STRUCT_PT_REGS_GPR 1
6894 _ACEOF
6895
6896
6897 fi
6898
6899  if test $ac_cv_member_struct_user_regs_struct_orig_eax = yes &&
6900    test $ac_cv_member_struct_user_regs_struct_eax = yes &&
6901    test $ac_cv_member_struct_user_regs_struct_ebx = yes &&
6902    test $ac_cv_member_struct_user_regs_struct_ecx = yes &&
6903    test $ac_cv_member_struct_user_regs_struct_edx = yes ; then
6904   WANT_PEEKFD_I386_TRUE=
6905   WANT_PEEKFD_I386_FALSE='#'
6906 else
6907   WANT_PEEKFD_I386_TRUE='#'
6908   WANT_PEEKFD_I386_FALSE=
6909 fi
6910
6911  if test $ac_cv_member_struct_user_regs_struct_orig_rax = yes &&
6912    test $ac_cv_member_struct_user_regs_struct_rax = yes &&
6913    test $ac_cv_member_struct_user_regs_struct_rdi = yes &&
6914    test $ac_cv_member_struct_user_regs_struct_rsi = yes &&
6915    test $ac_cv_member_struct_user_regs_struct_rdx = yes ; then
6916   WANT_PEEKFD_X86_64_TRUE=
6917   WANT_PEEKFD_X86_64_FALSE='#'
6918 else
6919   WANT_PEEKFD_X86_64_TRUE='#'
6920   WANT_PEEKFD_X86_64_FALSE=
6921 fi
6922
6923  if test $ac_cv_member_struct_pt_regs_orig_gpr3 = yes &&
6924    test $ac_cv_member_struct_pt_regs_gpr = yes ; then
6925   WANT_PEEKFD_PPC_TRUE=
6926   WANT_PEEKFD_PPC_FALSE='#'
6927 else
6928   WANT_PEEKFD_PPC_TRUE='#'
6929   WANT_PEEKFD_PPC_FALSE=
6930 fi
6931
6932
6933
6934   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6935 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6936     # Check whether --enable-nls was given.
6937 if test "${enable_nls+set}" = set; then
6938   enableval=$enable_nls; USE_NLS=$enableval
6939 else
6940   USE_NLS=yes
6941 fi
6942
6943   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6944 echo "${ECHO_T}$USE_NLS" >&6; }
6945
6946
6947
6948
6949
6950
6951 # Prepare PATH_SEPARATOR.
6952 # The user is always right.
6953 if test "${PATH_SEPARATOR+set}" != set; then
6954   echo "#! /bin/sh" >conf$$.sh
6955   echo  "exit 0"   >>conf$$.sh
6956   chmod +x conf$$.sh
6957   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6958     PATH_SEPARATOR=';'
6959   else
6960     PATH_SEPARATOR=:
6961   fi
6962   rm -f conf$$.sh
6963 fi
6964
6965 # Find out how to test for executable files. Don't use a zero-byte file,
6966 # as systems may use methods other than mode bits to determine executability.
6967 cat >conf$$.file <<_ASEOF
6968 #! /bin/sh
6969 exit 0
6970 _ASEOF
6971 chmod +x conf$$.file
6972 if test -x conf$$.file >/dev/null 2>&1; then
6973   ac_executable_p="test -x"
6974 else
6975   ac_executable_p="test -f"
6976 fi
6977 rm -f conf$$.file
6978
6979 # Extract the first word of "msgfmt", so it can be a program name with args.
6980 set dummy msgfmt; ac_word=$2
6981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6983 if test "${ac_cv_path_MSGFMT+set}" = set; then
6984   echo $ECHO_N "(cached) $ECHO_C" >&6
6985 else
6986   case "$MSGFMT" in
6987   [\\/]* | ?:[\\/]*)
6988     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6989     ;;
6990   *)
6991     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6992     for ac_dir in $PATH; do
6993       IFS="$ac_save_IFS"
6994       test -z "$ac_dir" && ac_dir=.
6995       for ac_exec_ext in '' $ac_executable_extensions; do
6996         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6997           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6998           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6999      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7000             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7001             break 2
7002           fi
7003         fi
7004       done
7005     done
7006     IFS="$ac_save_IFS"
7007   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7008     ;;
7009 esac
7010 fi
7011 MSGFMT="$ac_cv_path_MSGFMT"
7012 if test "$MSGFMT" != ":"; then
7013   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7014 echo "${ECHO_T}$MSGFMT" >&6; }
7015 else
7016   { echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6; }
7018 fi
7019
7020   # Extract the first word of "gmsgfmt", so it can be a program name with args.
7021 set dummy gmsgfmt; ac_word=$2
7022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7024 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7025   echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027   case $GMSGFMT in
7028   [\\/]* | ?:[\\/]*)
7029   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7030   ;;
7031   *)
7032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 for as_dir in $PATH
7034 do
7035   IFS=$as_save_IFS
7036   test -z "$as_dir" && as_dir=.
7037   for ac_exec_ext in '' $ac_executable_extensions; do
7038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7039     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7041     break 2
7042   fi
7043 done
7044 done
7045 IFS=$as_save_IFS
7046
7047   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7048   ;;
7049 esac
7050 fi
7051 GMSGFMT=$ac_cv_path_GMSGFMT
7052 if test -n "$GMSGFMT"; then
7053   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7054 echo "${ECHO_T}$GMSGFMT" >&6; }
7055 else
7056   { echo "$as_me:$LINENO: result: no" >&5
7057 echo "${ECHO_T}no" >&6; }
7058 fi
7059
7060
7061
7062     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7063     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
7064     *) MSGFMT_015=$MSGFMT ;;
7065   esac
7066
7067   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7068     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7069     *) GMSGFMT_015=$GMSGFMT ;;
7070   esac
7071
7072
7073
7074 # Prepare PATH_SEPARATOR.
7075 # The user is always right.
7076 if test "${PATH_SEPARATOR+set}" != set; then
7077   echo "#! /bin/sh" >conf$$.sh
7078   echo  "exit 0"   >>conf$$.sh
7079   chmod +x conf$$.sh
7080   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7081     PATH_SEPARATOR=';'
7082   else
7083     PATH_SEPARATOR=:
7084   fi
7085   rm -f conf$$.sh
7086 fi
7087
7088 # Find out how to test for executable files. Don't use a zero-byte file,
7089 # as systems may use methods other than mode bits to determine executability.
7090 cat >conf$$.file <<_ASEOF
7091 #! /bin/sh
7092 exit 0
7093 _ASEOF
7094 chmod +x conf$$.file
7095 if test -x conf$$.file >/dev/null 2>&1; then
7096   ac_executable_p="test -x"
7097 else
7098   ac_executable_p="test -f"
7099 fi
7100 rm -f conf$$.file
7101
7102 # Extract the first word of "xgettext", so it can be a program name with args.
7103 set dummy xgettext; ac_word=$2
7104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7106 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7107   echo $ECHO_N "(cached) $ECHO_C" >&6
7108 else
7109   case "$XGETTEXT" in
7110   [\\/]* | ?:[\\/]*)
7111     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7112     ;;
7113   *)
7114     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7115     for ac_dir in $PATH; do
7116       IFS="$ac_save_IFS"
7117       test -z "$ac_dir" && ac_dir=.
7118       for ac_exec_ext in '' $ac_executable_extensions; do
7119         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7120           echo "$as_me: trying $ac_dir/$ac_word..." >&5
7121           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
7122      (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
7123             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7124             break 2
7125           fi
7126         fi
7127       done
7128     done
7129     IFS="$ac_save_IFS"
7130   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7131     ;;
7132 esac
7133 fi
7134 XGETTEXT="$ac_cv_path_XGETTEXT"
7135 if test "$XGETTEXT" != ":"; then
7136   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7137 echo "${ECHO_T}$XGETTEXT" >&6; }
7138 else
7139   { echo "$as_me:$LINENO: result: no" >&5
7140 echo "${ECHO_T}no" >&6; }
7141 fi
7142
7143     rm -f messages.po
7144
7145     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7146     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7147     *) XGETTEXT_015=$XGETTEXT ;;
7148   esac
7149
7150
7151
7152 # Prepare PATH_SEPARATOR.
7153 # The user is always right.
7154 if test "${PATH_SEPARATOR+set}" != set; then
7155   echo "#! /bin/sh" >conf$$.sh
7156   echo  "exit 0"   >>conf$$.sh
7157   chmod +x conf$$.sh
7158   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7159     PATH_SEPARATOR=';'
7160   else
7161     PATH_SEPARATOR=:
7162   fi
7163   rm -f conf$$.sh
7164 fi
7165
7166 # Find out how to test for executable files. Don't use a zero-byte file,
7167 # as systems may use methods other than mode bits to determine executability.
7168 cat >conf$$.file <<_ASEOF
7169 #! /bin/sh
7170 exit 0
7171 _ASEOF
7172 chmod +x conf$$.file
7173 if test -x conf$$.file >/dev/null 2>&1; then
7174   ac_executable_p="test -x"
7175 else
7176   ac_executable_p="test -f"
7177 fi
7178 rm -f conf$$.file
7179
7180 # Extract the first word of "msgmerge", so it can be a program name with args.
7181 set dummy msgmerge; ac_word=$2
7182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7184 if test "${ac_cv_path_MSGMERGE+set}" = set; then
7185   echo $ECHO_N "(cached) $ECHO_C" >&6
7186 else
7187   case "$MSGMERGE" in
7188   [\\/]* | ?:[\\/]*)
7189     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7190     ;;
7191   *)
7192     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7193     for ac_dir in $PATH; do
7194       IFS="$ac_save_IFS"
7195       test -z "$ac_dir" && ac_dir=.
7196       for ac_exec_ext in '' $ac_executable_extensions; do
7197         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
7198           echo "$as_me: trying $ac_dir/$ac_word..." >&5
7199           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
7200             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7201             break 2
7202           fi
7203         fi
7204       done
7205     done
7206     IFS="$ac_save_IFS"
7207   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7208     ;;
7209 esac
7210 fi
7211 MSGMERGE="$ac_cv_path_MSGMERGE"
7212 if test "$MSGMERGE" != ":"; then
7213   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
7214 echo "${ECHO_T}$MSGMERGE" >&6; }
7215 else
7216   { echo "$as_me:$LINENO: result: no" >&5
7217 echo "${ECHO_T}no" >&6; }
7218 fi
7219
7220
7221         test -n "$localedir" || localedir='${datadir}/locale'
7222
7223
7224   ac_config_commands="$ac_config_commands po-directories"
7225
7226
7227
7228       if test "X$prefix" = "XNONE"; then
7229     acl_final_prefix="$ac_default_prefix"
7230   else
7231     acl_final_prefix="$prefix"
7232   fi
7233   if test "X$exec_prefix" = "XNONE"; then
7234     acl_final_exec_prefix='${prefix}'
7235   else
7236     acl_final_exec_prefix="$exec_prefix"
7237   fi
7238   acl_save_prefix="$prefix"
7239   prefix="$acl_final_prefix"
7240   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7241   prefix="$acl_save_prefix"
7242
7243 # Make sure we can run config.sub.
7244 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7245   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
7246 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
7247    { (exit 1); exit 1; }; }
7248
7249 { echo "$as_me:$LINENO: checking build system type" >&5
7250 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
7251 if test "${ac_cv_build+set}" = set; then
7252   echo $ECHO_N "(cached) $ECHO_C" >&6
7253 else
7254   ac_build_alias=$build_alias
7255 test "x$ac_build_alias" = x &&
7256   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7257 test "x$ac_build_alias" = x &&
7258   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
7259 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
7260    { (exit 1); exit 1; }; }
7261 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
7262   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
7263 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
7264    { (exit 1); exit 1; }; }
7265
7266 fi
7267 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
7268 echo "${ECHO_T}$ac_cv_build" >&6; }
7269 case $ac_cv_build in
7270 *-*-*) ;;
7271 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
7272 echo "$as_me: error: invalid value of canonical build" >&2;}
7273    { (exit 1); exit 1; }; };;
7274 esac
7275 build=$ac_cv_build
7276 ac_save_IFS=$IFS; IFS='-'
7277 set x $ac_cv_build
7278 shift
7279 build_cpu=$1
7280 build_vendor=$2
7281 shift; shift
7282 # Remember, the first character of IFS is used to create $*,
7283 # except with old shells:
7284 build_os=$*
7285 IFS=$ac_save_IFS
7286 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7287
7288
7289 { echo "$as_me:$LINENO: checking host system type" >&5
7290 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
7291 if test "${ac_cv_host+set}" = set; then
7292   echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294   if test "x$host_alias" = x; then
7295   ac_cv_host=$ac_cv_build
7296 else
7297   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
7298     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
7299 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
7300    { (exit 1); exit 1; }; }
7301 fi
7302
7303 fi
7304 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
7305 echo "${ECHO_T}$ac_cv_host" >&6; }
7306 case $ac_cv_host in
7307 *-*-*) ;;
7308 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
7309 echo "$as_me: error: invalid value of canonical host" >&2;}
7310    { (exit 1); exit 1; }; };;
7311 esac
7312 host=$ac_cv_host
7313 ac_save_IFS=$IFS; IFS='-'
7314 set x $ac_cv_host
7315 shift
7316 host_cpu=$1
7317 host_vendor=$2
7318 shift; shift
7319 # Remember, the first character of IFS is used to create $*,
7320 # except with old shells:
7321 host_os=$*
7322 IFS=$ac_save_IFS
7323 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7324
7325
7326
7327 # Check whether --with-gnu-ld was given.
7328 if test "${with_gnu_ld+set}" = set; then
7329   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7330 else
7331   with_gnu_ld=no
7332 fi
7333
7334 # Prepare PATH_SEPARATOR.
7335 # The user is always right.
7336 if test "${PATH_SEPARATOR+set}" != set; then
7337   echo "#! /bin/sh" >conf$$.sh
7338   echo  "exit 0"   >>conf$$.sh
7339   chmod +x conf$$.sh
7340   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7341     PATH_SEPARATOR=';'
7342   else
7343     PATH_SEPARATOR=:
7344   fi
7345   rm -f conf$$.sh
7346 fi
7347 ac_prog=ld
7348 if test "$GCC" = yes; then
7349   # Check if gcc -print-prog-name=ld gives a path.
7350   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7351 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
7352   case $host in
7353   *-*-mingw*)
7354     # gcc leaves a trailing carriage return which upsets mingw
7355     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7356   *)
7357     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7358   esac
7359   case $ac_prog in
7360     # Accept absolute paths.
7361     [\\/]* | [A-Za-z]:[\\/]*)
7362       re_direlt='/[^/][^/]*/\.\./'
7363       # Canonicalize the path of ld
7364       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7365       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7366         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7367       done
7368       test -z "$LD" && LD="$ac_prog"
7369       ;;
7370   "")
7371     # If it fails, then pretend we aren't using GCC.
7372     ac_prog=ld
7373     ;;
7374   *)
7375     # If it is relative, then search for the first ld in PATH.
7376     with_gnu_ld=unknown
7377     ;;
7378   esac
7379 elif test "$with_gnu_ld" = yes; then
7380   { echo "$as_me:$LINENO: checking for GNU ld" >&5
7381 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
7382 else
7383   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7384 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
7385 fi
7386 if test "${acl_cv_path_LD+set}" = set; then
7387   echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389   if test -z "$LD"; then
7390   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7391   for ac_dir in $PATH; do
7392     test -z "$ac_dir" && ac_dir=.
7393     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7394       acl_cv_path_LD="$ac_dir/$ac_prog"
7395       # Check to see if the program is GNU ld.  I'd rather use --version,
7396       # but apparently some GNU ld's only accept -v.
7397       # Break only if it was the GNU/non-GNU ld that we prefer.
7398       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7399       *GNU* | *'with BFD'*)
7400         test "$with_gnu_ld" != no && break ;;
7401       *)
7402         test "$with_gnu_ld" != yes && break ;;
7403       esac
7404     fi
7405   done
7406   IFS="$ac_save_ifs"
7407 else
7408   acl_cv_path_LD="$LD" # Let the user override the test with a path.
7409 fi
7410 fi
7411
7412 LD="$acl_cv_path_LD"
7413 if test -n "$LD"; then
7414   { echo "$as_me:$LINENO: result: $LD" >&5
7415 echo "${ECHO_T}$LD" >&6; }
7416 else
7417   { echo "$as_me:$LINENO: result: no" >&5
7418 echo "${ECHO_T}no" >&6; }
7419 fi
7420 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7421 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7422    { (exit 1); exit 1; }; }
7423 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7424 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
7425 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7426   echo $ECHO_N "(cached) $ECHO_C" >&6
7427 else
7428   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7429 case `$LD -v 2>&1 </dev/null` in
7430 *GNU* | *'with BFD'*)
7431   acl_cv_prog_gnu_ld=yes ;;
7432 *)
7433   acl_cv_prog_gnu_ld=no ;;
7434 esac
7435 fi
7436 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7437 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
7438 with_gnu_ld=$acl_cv_prog_gnu_ld
7439
7440
7441
7442
7443                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7444 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
7445 if test "${acl_cv_rpath+set}" = set; then
7446   echo $ECHO_N "(cached) $ECHO_C" >&6
7447 else
7448
7449     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7450     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7451     . ./conftest.sh
7452     rm -f ./conftest.sh
7453     acl_cv_rpath=done
7454
7455 fi
7456 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7457 echo "${ECHO_T}$acl_cv_rpath" >&6; }
7458   wl="$acl_cv_wl"
7459   libext="$acl_cv_libext"
7460   shlibext="$acl_cv_shlibext"
7461   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7462   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7463   hardcode_direct="$acl_cv_hardcode_direct"
7464   hardcode_minus_L="$acl_cv_hardcode_minus_L"
7465     # Check whether --enable-rpath was given.
7466 if test "${enable_rpath+set}" = set; then
7467   enableval=$enable_rpath; :
7468 else
7469   enable_rpath=yes
7470 fi
7471
7472
7473
7474                   acl_libdirstem=lib
7475   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7476   if test -n "$searchpath"; then
7477     acl_save_IFS="${IFS=        }"; IFS=":"
7478     for searchdir in $searchpath; do
7479       if test -d "$searchdir"; then
7480         case "$searchdir" in
7481           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7482           *) searchdir=`cd "$searchdir" && pwd`
7483              case "$searchdir" in
7484                */lib64 ) acl_libdirstem=lib64 ;;
7485              esac ;;
7486         esac
7487       fi
7488     done
7489     IFS="$acl_save_IFS"
7490   fi
7491
7492
7493
7494
7495
7496
7497
7498
7499     use_additional=yes
7500
7501   acl_save_prefix="$prefix"
7502   prefix="$acl_final_prefix"
7503   acl_save_exec_prefix="$exec_prefix"
7504   exec_prefix="$acl_final_exec_prefix"
7505
7506     eval additional_includedir=\"$includedir\"
7507     eval additional_libdir=\"$libdir\"
7508
7509   exec_prefix="$acl_save_exec_prefix"
7510   prefix="$acl_save_prefix"
7511
7512
7513 # Check whether --with-libiconv-prefix was given.
7514 if test "${with_libiconv_prefix+set}" = set; then
7515   withval=$with_libiconv_prefix;
7516     if test "X$withval" = "Xno"; then
7517       use_additional=no
7518     else
7519       if test "X$withval" = "X"; then
7520
7521   acl_save_prefix="$prefix"
7522   prefix="$acl_final_prefix"
7523   acl_save_exec_prefix="$exec_prefix"
7524   exec_prefix="$acl_final_exec_prefix"
7525
7526           eval additional_includedir=\"$includedir\"
7527           eval additional_libdir=\"$libdir\"
7528
7529   exec_prefix="$acl_save_exec_prefix"
7530   prefix="$acl_save_prefix"
7531
7532       else
7533         additional_includedir="$withval/include"
7534         additional_libdir="$withval/$acl_libdirstem"
7535       fi
7536     fi
7537
7538 fi
7539
7540       LIBICONV=
7541   LTLIBICONV=
7542   INCICONV=
7543   rpathdirs=
7544   ltrpathdirs=
7545   names_already_handled=
7546   names_next_round='iconv '
7547   while test -n "$names_next_round"; do
7548     names_this_round="$names_next_round"
7549     names_next_round=
7550     for name in $names_this_round; do
7551       already_handled=
7552       for n in $names_already_handled; do
7553         if test "$n" = "$name"; then
7554           already_handled=yes
7555           break
7556         fi
7557       done
7558       if test -z "$already_handled"; then
7559         names_already_handled="$names_already_handled $name"
7560                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7561         eval value=\"\$HAVE_LIB$uppername\"
7562         if test -n "$value"; then
7563           if test "$value" = yes; then
7564             eval value=\"\$LIB$uppername\"
7565             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7566             eval value=\"\$LTLIB$uppername\"
7567             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7568           else
7569                                     :
7570           fi
7571         else
7572                               found_dir=
7573           found_la=
7574           found_so=
7575           found_a=
7576           if test $use_additional = yes; then
7577             if test -n "$shlibext" \
7578                && { test -f "$additional_libdir/lib$name.$shlibext" \
7579                     || { test "$shlibext" = dll \
7580                          && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
7581               found_dir="$additional_libdir"
7582               if test -f "$additional_libdir/lib$name.$shlibext"; then
7583                 found_so="$additional_libdir/lib$name.$shlibext"
7584               else
7585                 found_so="$additional_libdir/lib$name.dll.a"
7586               fi
7587               if test -f "$additional_libdir/lib$name.la"; then
7588                 found_la="$additional_libdir/lib$name.la"
7589               fi
7590             else
7591               if test -f "$additional_libdir/lib$name.$libext"; then
7592                 found_dir="$additional_libdir"
7593                 found_a="$additional_libdir/lib$name.$libext"
7594                 if test -f "$additional_libdir/lib$name.la"; then
7595                   found_la="$additional_libdir/lib$name.la"
7596                 fi
7597               fi
7598             fi
7599           fi
7600           if test "X$found_dir" = "X"; then
7601             for x in $LDFLAGS $LTLIBICONV; do
7602
7603   acl_save_prefix="$prefix"
7604   prefix="$acl_final_prefix"
7605   acl_save_exec_prefix="$exec_prefix"
7606   exec_prefix="$acl_final_exec_prefix"
7607   eval x=\"$x\"
7608   exec_prefix="$acl_save_exec_prefix"
7609   prefix="$acl_save_prefix"
7610
7611               case "$x" in
7612                 -L*)
7613                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7614                   if test -n "$shlibext" \
7615                      && { test -f "$dir/lib$name.$shlibext" \
7616                           || { test "$shlibext" = dll \
7617                                && test -f "$dir/lib$name.dll.a"; }; }; then
7618                     found_dir="$dir"
7619                     if test -f "$dir/lib$name.$shlibext"; then
7620                       found_so="$dir/lib$name.$shlibext"
7621                     else
7622                       found_so="$dir/lib$name.dll.a"
7623                     fi
7624                     if test -f "$dir/lib$name.la"; then
7625                       found_la="$dir/lib$name.la"
7626                     fi
7627                   else
7628                     if test -f "$dir/lib$name.$libext"; then
7629                       found_dir="$dir"
7630                       found_a="$dir/lib$name.$libext"
7631                       if test -f "$dir/lib$name.la"; then
7632                         found_la="$dir/lib$name.la"
7633                       fi
7634                     fi
7635                   fi
7636                   ;;
7637               esac
7638               if test "X$found_dir" != "X"; then
7639                 break
7640               fi
7641             done
7642           fi
7643           if test "X$found_dir" != "X"; then
7644                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7645             if test "X$found_so" != "X"; then
7646                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
7647                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7648               else
7649                                                                                 haveit=
7650                 for x in $ltrpathdirs; do
7651                   if test "X$x" = "X$found_dir"; then
7652                     haveit=yes
7653                     break
7654                   fi
7655                 done
7656                 if test -z "$haveit"; then
7657                   ltrpathdirs="$ltrpathdirs $found_dir"
7658                 fi
7659                                 if test "$hardcode_direct" = yes; then
7660                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7661                 else
7662                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7663                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7664                                                             haveit=
7665                     for x in $rpathdirs; do
7666                       if test "X$x" = "X$found_dir"; then
7667                         haveit=yes
7668                         break
7669                       fi
7670                     done
7671                     if test -z "$haveit"; then
7672                       rpathdirs="$rpathdirs $found_dir"
7673                     fi
7674                   else
7675                                                                                 haveit=
7676                     for x in $LDFLAGS $LIBICONV; do
7677
7678   acl_save_prefix="$prefix"
7679   prefix="$acl_final_prefix"
7680   acl_save_exec_prefix="$exec_prefix"
7681   exec_prefix="$acl_final_exec_prefix"
7682   eval x=\"$x\"
7683   exec_prefix="$acl_save_exec_prefix"
7684   prefix="$acl_save_prefix"
7685
7686                       if test "X$x" = "X-L$found_dir"; then
7687                         haveit=yes
7688                         break
7689                       fi
7690                     done
7691                     if test -z "$haveit"; then
7692                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7693                     fi
7694                     if test "$hardcode_minus_L" != no; then
7695                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7696                     else
7697                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7698                     fi
7699                   fi
7700                 fi
7701               fi
7702             else
7703               if test "X$found_a" != "X"; then
7704                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7705               else
7706                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7707               fi
7708             fi
7709                         additional_includedir=
7710             case "$found_dir" in
7711               */$acl_libdirstem | */$acl_libdirstem/)
7712                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7713                 additional_includedir="$basedir/include"
7714                 ;;
7715             esac
7716             if test "X$additional_includedir" != "X"; then
7717                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7718                 haveit=
7719                 if test "X$additional_includedir" = "X/usr/local/include"; then
7720                   if test -n "$GCC"; then
7721                     case $host_os in
7722                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7723                     esac
7724                   fi
7725                 fi
7726                 if test -z "$haveit"; then
7727                   for x in $CPPFLAGS $INCICONV; do
7728
7729   acl_save_prefix="$prefix"
7730   prefix="$acl_final_prefix"
7731   acl_save_exec_prefix="$exec_prefix"
7732   exec_prefix="$acl_final_exec_prefix"
7733   eval x=\"$x\"
7734   exec_prefix="$acl_save_exec_prefix"
7735   prefix="$acl_save_prefix"
7736
7737                     if test "X$x" = "X-I$additional_includedir"; then
7738                       haveit=yes
7739                       break
7740                     fi
7741                   done
7742                   if test -z "$haveit"; then
7743                     if test -d "$additional_includedir"; then
7744                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7745                     fi
7746                   fi
7747                 fi
7748               fi
7749             fi
7750                         if test -n "$found_la"; then
7751                                                         save_libdir="$libdir"
7752               case "$found_la" in
7753                 */* | *\\*) . "$found_la" ;;
7754                 *) . "./$found_la" ;;
7755               esac
7756               libdir="$save_libdir"
7757                             for dep in $dependency_libs; do
7758                 case "$dep" in
7759                   -L*)
7760                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7761                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
7762                       haveit=
7763                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
7764                         if test -n "$GCC"; then
7765                           case $host_os in
7766                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7767                           esac
7768                         fi
7769                       fi
7770                       if test -z "$haveit"; then
7771                         haveit=
7772                         for x in $LDFLAGS $LIBICONV; do
7773
7774   acl_save_prefix="$prefix"
7775   prefix="$acl_final_prefix"
7776   acl_save_exec_prefix="$exec_prefix"
7777   exec_prefix="$acl_final_exec_prefix"
7778   eval x=\"$x\"
7779   exec_prefix="$acl_save_exec_prefix"
7780   prefix="$acl_save_prefix"
7781
7782                           if test "X$x" = "X-L$additional_libdir"; then
7783                             haveit=yes
7784                             break
7785                           fi
7786                         done
7787                         if test -z "$haveit"; then
7788                           if test -d "$additional_libdir"; then
7789                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7790                           fi
7791                         fi
7792                         haveit=
7793                         for x in $LDFLAGS $LTLIBICONV; do
7794
7795   acl_save_prefix="$prefix"
7796   prefix="$acl_final_prefix"
7797   acl_save_exec_prefix="$exec_prefix"
7798   exec_prefix="$acl_final_exec_prefix"
7799   eval x=\"$x\"
7800   exec_prefix="$acl_save_exec_prefix"
7801   prefix="$acl_save_prefix"
7802
7803                           if test "X$x" = "X-L$additional_libdir"; then
7804                             haveit=yes
7805                             break
7806                           fi
7807                         done
7808                         if test -z "$haveit"; then
7809                           if test -d "$additional_libdir"; then
7810                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7811                           fi
7812                         fi
7813                       fi
7814                     fi
7815                     ;;
7816                   -R*)
7817                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7818                     if test "$enable_rpath" != no; then
7819                                                                   haveit=
7820                       for x in $rpathdirs; do
7821                         if test "X$x" = "X$dir"; then
7822                           haveit=yes
7823                           break
7824                         fi
7825                       done
7826                       if test -z "$haveit"; then
7827                         rpathdirs="$rpathdirs $dir"
7828                       fi
7829                                                                   haveit=
7830                       for x in $ltrpathdirs; do
7831                         if test "X$x" = "X$dir"; then
7832                           haveit=yes
7833                           break
7834                         fi
7835                       done
7836                       if test -z "$haveit"; then
7837                         ltrpathdirs="$ltrpathdirs $dir"
7838                       fi
7839                     fi
7840                     ;;
7841                   -l*)
7842                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7843                     ;;
7844                   *.la)
7845                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7846                     ;;
7847                   *)
7848                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7849                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7850                     ;;
7851                 esac
7852               done
7853             fi
7854           else
7855                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7856             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7857           fi
7858         fi
7859       fi
7860     done
7861   done
7862   if test "X$rpathdirs" != "X"; then
7863     if test -n "$hardcode_libdir_separator"; then
7864                         alldirs=
7865       for found_dir in $rpathdirs; do
7866         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7867       done
7868             acl_save_libdir="$libdir"
7869       libdir="$alldirs"
7870       eval flag=\"$hardcode_libdir_flag_spec\"
7871       libdir="$acl_save_libdir"
7872       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7873     else
7874             for found_dir in $rpathdirs; do
7875         acl_save_libdir="$libdir"
7876         libdir="$found_dir"
7877         eval flag=\"$hardcode_libdir_flag_spec\"
7878         libdir="$acl_save_libdir"
7879         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7880       done
7881     fi
7882   fi
7883   if test "X$ltrpathdirs" != "X"; then
7884             for found_dir in $ltrpathdirs; do
7885       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7886     done
7887   fi
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
7914 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
7915 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
7916   echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918   gt_save_LIBS="$LIBS"
7919      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7920      cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h.  */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h.  */
7926 #include <CoreFoundation/CFPreferences.h>
7927 int
7928 main ()
7929 {
7930 CFPreferencesCopyAppValue(NULL, NULL)
7931   ;
7932   return 0;
7933 }
7934 _ACEOF
7935 rm -f conftest.$ac_objext conftest$ac_exeext
7936 if { (ac_try="$ac_link"
7937 case "(($ac_try" in
7938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939   *) ac_try_echo=$ac_try;;
7940 esac
7941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7942   (eval "$ac_link") 2>conftest.er1
7943   ac_status=$?
7944   grep -v '^ *+' conftest.er1 >conftest.err
7945   rm -f conftest.er1
7946   cat conftest.err >&5
7947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948   (exit $ac_status); } && {
7949          test -z "$ac_c_werror_flag" ||
7950          test ! -s conftest.err
7951        } && test -s conftest$ac_exeext &&
7952        $as_test_x conftest$ac_exeext; then
7953   gt_cv_func_CFPreferencesCopyAppValue=yes
7954 else
7955   echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7957
7958         gt_cv_func_CFPreferencesCopyAppValue=no
7959 fi
7960
7961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7962       conftest$ac_exeext conftest.$ac_ext
7963      LIBS="$gt_save_LIBS"
7964 fi
7965 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7966 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7967   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7968
7969 cat >>confdefs.h <<\_ACEOF
7970 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
7971 _ACEOF
7972
7973   fi
7974     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
7975 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
7976 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
7977   echo $ECHO_N "(cached) $ECHO_C" >&6
7978 else
7979   gt_save_LIBS="$LIBS"
7980      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7981      cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h.  */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h.  */
7987 #include <CoreFoundation/CFLocale.h>
7988 int
7989 main ()
7990 {
7991 CFLocaleCopyCurrent();
7992   ;
7993   return 0;
7994 }
7995 _ACEOF
7996 rm -f conftest.$ac_objext conftest$ac_exeext
7997 if { (ac_try="$ac_link"
7998 case "(($ac_try" in
7999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000   *) ac_try_echo=$ac_try;;
8001 esac
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003   (eval "$ac_link") 2>conftest.er1
8004   ac_status=$?
8005   grep -v '^ *+' conftest.er1 >conftest.err
8006   rm -f conftest.er1
8007   cat conftest.err >&5
8008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009   (exit $ac_status); } && {
8010          test -z "$ac_c_werror_flag" ||
8011          test ! -s conftest.err
8012        } && test -s conftest$ac_exeext &&
8013        $as_test_x conftest$ac_exeext; then
8014   gt_cv_func_CFLocaleCopyCurrent=yes
8015 else
8016   echo "$as_me: failed program was:" >&5
8017 sed 's/^/| /' conftest.$ac_ext >&5
8018
8019         gt_cv_func_CFLocaleCopyCurrent=no
8020 fi
8021
8022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8023       conftest$ac_exeext conftest.$ac_ext
8024      LIBS="$gt_save_LIBS"
8025 fi
8026 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8027 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8028   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8029
8030 cat >>confdefs.h <<\_ACEOF
8031 #define HAVE_CFLOCALECOPYCURRENT 1
8032 _ACEOF
8033
8034   fi
8035   INTL_MACOSX_LIBS=
8036   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8037     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8038   fi
8039
8040
8041
8042
8043
8044
8045   LIBINTL=
8046   LTLIBINTL=
8047   POSUB=
8048
8049     case " $gt_needs " in
8050     *" need-formatstring-macros "*) gt_api_version=3 ;;
8051     *" need-ngettext "*) gt_api_version=2 ;;
8052     *) gt_api_version=1 ;;
8053   esac
8054   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8055   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8056
8057     if test "$USE_NLS" = "yes"; then
8058     gt_use_preinstalled_gnugettext=no
8059
8060
8061         if test $gt_api_version -ge 3; then
8062           gt_revision_test_code='
8063 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8064 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8065 #endif
8066 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8067 '
8068         else
8069           gt_revision_test_code=
8070         fi
8071         if test $gt_api_version -ge 2; then
8072           gt_expression_test_code=' + * ngettext ("", "", 0)'
8073         else
8074           gt_expression_test_code=
8075         fi
8076
8077         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8078 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
8079 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
8080   echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082   cat >conftest.$ac_ext <<_ACEOF
8083 /* confdefs.h.  */
8084 _ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h.  */
8088 #include <libintl.h>
8089 $gt_revision_test_code
8090 extern int _nl_msg_cat_cntr;
8091 extern int *_nl_domain_bindings;
8092 int
8093 main ()
8094 {
8095 bindtextdomain ("", "");
8096 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
8097   ;
8098   return 0;
8099 }
8100 _ACEOF
8101 rm -f conftest.$ac_objext conftest$ac_exeext
8102 if { (ac_try="$ac_link"
8103 case "(($ac_try" in
8104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8105   *) ac_try_echo=$ac_try;;
8106 esac
8107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8108   (eval "$ac_link") 2>conftest.er1
8109   ac_status=$?
8110   grep -v '^ *+' conftest.er1 >conftest.err
8111   rm -f conftest.er1
8112   cat conftest.err >&5
8113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114   (exit $ac_status); } && {
8115          test -z "$ac_c_werror_flag" ||
8116          test ! -s conftest.err
8117        } && test -s conftest$ac_exeext &&
8118        $as_test_x conftest$ac_exeext; then
8119   eval "$gt_func_gnugettext_libc=yes"
8120 else
8121   echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8123
8124         eval "$gt_func_gnugettext_libc=no"
8125 fi
8126
8127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8128       conftest$ac_exeext conftest.$ac_ext
8129 fi
8130 ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
8131                { echo "$as_me:$LINENO: result: $ac_res" >&5
8132 echo "${ECHO_T}$ac_res" >&6; }
8133
8134         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8135
8136
8137
8138
8139
8140           am_save_CPPFLAGS="$CPPFLAGS"
8141
8142   for element in $INCICONV; do
8143     haveit=
8144     for x in $CPPFLAGS; do
8145
8146   acl_save_prefix="$prefix"
8147   prefix="$acl_final_prefix"
8148   acl_save_exec_prefix="$exec_prefix"
8149   exec_prefix="$acl_final_exec_prefix"
8150   eval x=\"$x\"
8151   exec_prefix="$acl_save_exec_prefix"
8152   prefix="$acl_save_prefix"
8153
8154       if test "X$x" = "X$element"; then
8155         haveit=yes
8156         break
8157       fi
8158     done
8159     if test -z "$haveit"; then
8160       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8161     fi
8162   done
8163
8164
8165   { echo "$as_me:$LINENO: checking for iconv" >&5
8166 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
8167 if test "${am_cv_func_iconv+set}" = set; then
8168   echo $ECHO_N "(cached) $ECHO_C" >&6
8169 else
8170
8171     am_cv_func_iconv="no, consider installing GNU libiconv"
8172     am_cv_lib_iconv=no
8173     cat >conftest.$ac_ext <<_ACEOF
8174 /* confdefs.h.  */
8175 _ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h.  */
8179 #include <stdlib.h>
8180 #include <iconv.h>
8181 int
8182 main ()
8183 {
8184 iconv_t cd = iconv_open("","");
8185        iconv(cd,NULL,NULL,NULL,NULL);
8186        iconv_close(cd);
8187   ;
8188   return 0;
8189 }
8190 _ACEOF
8191 rm -f conftest.$ac_objext conftest$ac_exeext
8192 if { (ac_try="$ac_link"
8193 case "(($ac_try" in
8194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8195   *) ac_try_echo=$ac_try;;
8196 esac
8197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8198   (eval "$ac_link") 2>conftest.er1
8199   ac_status=$?
8200   grep -v '^ *+' conftest.er1 >conftest.err
8201   rm -f conftest.er1
8202   cat conftest.err >&5
8203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204   (exit $ac_status); } && {
8205          test -z "$ac_c_werror_flag" ||
8206          test ! -s conftest.err
8207        } && test -s conftest$ac_exeext &&
8208        $as_test_x conftest$ac_exeext; then
8209   am_cv_func_iconv=yes
8210 else
8211   echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8213
8214
8215 fi
8216
8217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8218       conftest$ac_exeext conftest.$ac_ext
8219     if test "$am_cv_func_iconv" != yes; then
8220       am_save_LIBS="$LIBS"
8221       LIBS="$LIBS $LIBICONV"
8222       cat >conftest.$ac_ext <<_ACEOF
8223 /* confdefs.h.  */
8224 _ACEOF
8225 cat confdefs.h >>conftest.$ac_ext
8226 cat >>conftest.$ac_ext <<_ACEOF
8227 /* end confdefs.h.  */
8228 #include <stdlib.h>
8229 #include <iconv.h>
8230 int
8231 main ()
8232 {
8233 iconv_t cd = iconv_open("","");
8234          iconv(cd,NULL,NULL,NULL,NULL);
8235          iconv_close(cd);
8236   ;
8237   return 0;
8238 }
8239 _ACEOF
8240 rm -f conftest.$ac_objext conftest$ac_exeext
8241 if { (ac_try="$ac_link"
8242 case "(($ac_try" in
8243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244   *) ac_try_echo=$ac_try;;
8245 esac
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247   (eval "$ac_link") 2>conftest.er1
8248   ac_status=$?
8249   grep -v '^ *+' conftest.er1 >conftest.err
8250   rm -f conftest.er1
8251   cat conftest.err >&5
8252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253   (exit $ac_status); } && {
8254          test -z "$ac_c_werror_flag" ||
8255          test ! -s conftest.err
8256        } && test -s conftest$ac_exeext &&
8257        $as_test_x conftest$ac_exeext; then
8258   am_cv_lib_iconv=yes
8259         am_cv_func_iconv=yes
8260 else
8261   echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8263
8264
8265 fi
8266
8267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8268       conftest$ac_exeext conftest.$ac_ext
8269       LIBS="$am_save_LIBS"
8270     fi
8271
8272 fi
8273 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8274 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
8275   if test "$am_cv_func_iconv" = yes; then
8276
8277 cat >>confdefs.h <<\_ACEOF
8278 #define HAVE_ICONV 1
8279 _ACEOF
8280
8281   fi
8282   if test "$am_cv_lib_iconv" = yes; then
8283     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8284 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
8285     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
8286 echo "${ECHO_T}$LIBICONV" >&6; }
8287   else
8288             CPPFLAGS="$am_save_CPPFLAGS"
8289     LIBICONV=
8290     LTLIBICONV=
8291   fi
8292
8293
8294
8295
8296
8297
8298
8299     use_additional=yes
8300
8301   acl_save_prefix="$prefix"
8302   prefix="$acl_final_prefix"
8303   acl_save_exec_prefix="$exec_prefix"
8304   exec_prefix="$acl_final_exec_prefix"
8305
8306     eval additional_includedir=\"$includedir\"
8307     eval additional_libdir=\"$libdir\"
8308
8309   exec_prefix="$acl_save_exec_prefix"
8310   prefix="$acl_save_prefix"
8311
8312
8313 # Check whether --with-libintl-prefix was given.
8314 if test "${with_libintl_prefix+set}" = set; then
8315   withval=$with_libintl_prefix;
8316     if test "X$withval" = "Xno"; then
8317       use_additional=no
8318     else
8319       if test "X$withval" = "X"; then
8320
8321   acl_save_prefix="$prefix"
8322   prefix="$acl_final_prefix"
8323   acl_save_exec_prefix="$exec_prefix"
8324   exec_prefix="$acl_final_exec_prefix"
8325
8326           eval additional_includedir=\"$includedir\"
8327           eval additional_libdir=\"$libdir\"
8328
8329   exec_prefix="$acl_save_exec_prefix"
8330   prefix="$acl_save_prefix"
8331
8332       else
8333         additional_includedir="$withval/include"
8334         additional_libdir="$withval/$acl_libdirstem"
8335       fi
8336     fi
8337
8338 fi
8339
8340       LIBINTL=
8341   LTLIBINTL=
8342   INCINTL=
8343   rpathdirs=
8344   ltrpathdirs=
8345   names_already_handled=
8346   names_next_round='intl '
8347   while test -n "$names_next_round"; do
8348     names_this_round="$names_next_round"
8349     names_next_round=
8350     for name in $names_this_round; do
8351       already_handled=
8352       for n in $names_already_handled; do
8353         if test "$n" = "$name"; then
8354           already_handled=yes
8355           break
8356         fi
8357       done
8358       if test -z "$already_handled"; then
8359         names_already_handled="$names_already_handled $name"
8360                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8361         eval value=\"\$HAVE_LIB$uppername\"
8362         if test -n "$value"; then
8363           if test "$value" = yes; then
8364             eval value=\"\$LIB$uppername\"
8365             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8366             eval value=\"\$LTLIB$uppername\"
8367             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8368           else
8369                                     :
8370           fi
8371         else
8372                               found_dir=
8373           found_la=
8374           found_so=
8375           found_a=
8376           if test $use_additional = yes; then
8377             if test -n "$shlibext" \
8378                && { test -f "$additional_libdir/lib$name.$shlibext" \
8379                     || { test "$shlibext" = dll \
8380                          && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
8381               found_dir="$additional_libdir"
8382               if test -f "$additional_libdir/lib$name.$shlibext"; then
8383                 found_so="$additional_libdir/lib$name.$shlibext"
8384               else
8385                 found_so="$additional_libdir/lib$name.dll.a"
8386               fi
8387               if test -f "$additional_libdir/lib$name.la"; then
8388                 found_la="$additional_libdir/lib$name.la"
8389               fi
8390             else
8391               if test -f "$additional_libdir/lib$name.$libext"; then
8392                 found_dir="$additional_libdir"
8393                 found_a="$additional_libdir/lib$name.$libext"
8394                 if test -f "$additional_libdir/lib$name.la"; then
8395                   found_la="$additional_libdir/lib$name.la"
8396                 fi
8397               fi
8398             fi
8399           fi
8400           if test "X$found_dir" = "X"; then
8401             for x in $LDFLAGS $LTLIBINTL; do
8402
8403   acl_save_prefix="$prefix"
8404   prefix="$acl_final_prefix"
8405   acl_save_exec_prefix="$exec_prefix"
8406   exec_prefix="$acl_final_exec_prefix"
8407   eval x=\"$x\"
8408   exec_prefix="$acl_save_exec_prefix"
8409   prefix="$acl_save_prefix"
8410
8411               case "$x" in
8412                 -L*)
8413                   dir=`echo "X$x" | sed -e 's/^X-L//'`
8414                   if test -n "$shlibext" \
8415                      && { test -f "$dir/lib$name.$shlibext" \
8416                           || { test "$shlibext" = dll \
8417                                && test -f "$dir/lib$name.dll.a"; }; }; then
8418                     found_dir="$dir"
8419                     if test -f "$dir/lib$name.$shlibext"; then
8420                       found_so="$dir/lib$name.$shlibext"
8421                     else
8422                       found_so="$dir/lib$name.dll.a"
8423                     fi
8424                     if test -f "$dir/lib$name.la"; then
8425                       found_la="$dir/lib$name.la"
8426                     fi
8427                   else
8428                     if test -f "$dir/lib$name.$libext"; then
8429                       found_dir="$dir"
8430                       found_a="$dir/lib$name.$libext"
8431                       if test -f "$dir/lib$name.la"; then
8432                         found_la="$dir/lib$name.la"
8433                       fi
8434                     fi
8435                   fi
8436                   ;;
8437               esac
8438               if test "X$found_dir" != "X"; then
8439                 break
8440               fi
8441             done
8442           fi
8443           if test "X$found_dir" != "X"; then
8444                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8445             if test "X$found_so" != "X"; then
8446                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
8447                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8448               else
8449                                                                                 haveit=
8450                 for x in $ltrpathdirs; do
8451                   if test "X$x" = "X$found_dir"; then
8452                     haveit=yes
8453                     break
8454                   fi
8455                 done
8456                 if test -z "$haveit"; then
8457                   ltrpathdirs="$ltrpathdirs $found_dir"
8458                 fi
8459                                 if test "$hardcode_direct" = yes; then
8460                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8461                 else
8462                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8463                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8464                                                             haveit=
8465                     for x in $rpathdirs; do
8466                       if test "X$x" = "X$found_dir"; then
8467                         haveit=yes
8468                         break
8469                       fi
8470                     done
8471                     if test -z "$haveit"; then
8472                       rpathdirs="$rpathdirs $found_dir"
8473                     fi
8474                   else
8475                                                                                 haveit=
8476                     for x in $LDFLAGS $LIBINTL; do
8477
8478   acl_save_prefix="$prefix"
8479   prefix="$acl_final_prefix"
8480   acl_save_exec_prefix="$exec_prefix"
8481   exec_prefix="$acl_final_exec_prefix"
8482   eval x=\"$x\"
8483   exec_prefix="$acl_save_exec_prefix"
8484   prefix="$acl_save_prefix"
8485
8486                       if test "X$x" = "X-L$found_dir"; then
8487                         haveit=yes
8488                         break
8489                       fi
8490                     done
8491                     if test -z "$haveit"; then
8492                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8493                     fi
8494                     if test "$hardcode_minus_L" != no; then
8495                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8496                     else
8497                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8498                     fi
8499                   fi
8500                 fi
8501               fi
8502             else
8503               if test "X$found_a" != "X"; then
8504                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8505               else
8506                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8507               fi
8508             fi
8509                         additional_includedir=
8510             case "$found_dir" in
8511               */$acl_libdirstem | */$acl_libdirstem/)
8512                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8513                 additional_includedir="$basedir/include"
8514                 ;;
8515             esac
8516             if test "X$additional_includedir" != "X"; then
8517                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
8518                 haveit=
8519                 if test "X$additional_includedir" = "X/usr/local/include"; then
8520                   if test -n "$GCC"; then
8521                     case $host_os in
8522                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8523                     esac
8524                   fi
8525                 fi
8526                 if test -z "$haveit"; then
8527                   for x in $CPPFLAGS $INCINTL; do
8528
8529   acl_save_prefix="$prefix"
8530   prefix="$acl_final_prefix"
8531   acl_save_exec_prefix="$exec_prefix"
8532   exec_prefix="$acl_final_exec_prefix"
8533   eval x=\"$x\"
8534   exec_prefix="$acl_save_exec_prefix"
8535   prefix="$acl_save_prefix"
8536
8537                     if test "X$x" = "X-I$additional_includedir"; then
8538                       haveit=yes
8539                       break
8540                     fi
8541                   done
8542                   if test -z "$haveit"; then
8543                     if test -d "$additional_includedir"; then
8544                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8545                     fi
8546                   fi
8547                 fi
8548               fi
8549             fi
8550                         if test -n "$found_la"; then
8551                                                         save_libdir="$libdir"
8552               case "$found_la" in
8553                 */* | *\\*) . "$found_la" ;;
8554                 *) . "./$found_la" ;;
8555               esac
8556               libdir="$save_libdir"
8557                             for dep in $dependency_libs; do
8558                 case "$dep" in
8559                   -L*)
8560                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8561                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
8562                       haveit=
8563                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
8564                         if test -n "$GCC"; then
8565                           case $host_os in
8566                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8567                           esac
8568                         fi
8569                       fi
8570                       if test -z "$haveit"; then
8571                         haveit=
8572                         for x in $LDFLAGS $LIBINTL; do
8573
8574   acl_save_prefix="$prefix"
8575   prefix="$acl_final_prefix"
8576   acl_save_exec_prefix="$exec_prefix"
8577   exec_prefix="$acl_final_exec_prefix"
8578   eval x=\"$x\"
8579   exec_prefix="$acl_save_exec_prefix"
8580   prefix="$acl_save_prefix"
8581
8582                           if test "X$x" = "X-L$additional_libdir"; then
8583                             haveit=yes
8584                             break
8585                           fi
8586                         done
8587                         if test -z "$haveit"; then
8588                           if test -d "$additional_libdir"; then
8589                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8590                           fi
8591                         fi
8592                         haveit=
8593                         for x in $LDFLAGS $LTLIBINTL; do
8594
8595   acl_save_prefix="$prefix"
8596   prefix="$acl_final_prefix"
8597   acl_save_exec_prefix="$exec_prefix"
8598   exec_prefix="$acl_final_exec_prefix"
8599   eval x=\"$x\"
8600   exec_prefix="$acl_save_exec_prefix"
8601   prefix="$acl_save_prefix"
8602
8603                           if test "X$x" = "X-L$additional_libdir"; then
8604                             haveit=yes
8605                             break
8606                           fi
8607                         done
8608                         if test -z "$haveit"; then
8609                           if test -d "$additional_libdir"; then
8610                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8611                           fi
8612                         fi
8613                       fi
8614                     fi
8615                     ;;
8616                   -R*)
8617                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
8618                     if test "$enable_rpath" != no; then
8619                                                                   haveit=
8620                       for x in $rpathdirs; do
8621                         if test "X$x" = "X$dir"; then
8622                           haveit=yes
8623                           break
8624                         fi
8625                       done
8626                       if test -z "$haveit"; then
8627                         rpathdirs="$rpathdirs $dir"
8628                       fi
8629                                                                   haveit=
8630                       for x in $ltrpathdirs; do
8631                         if test "X$x" = "X$dir"; then
8632                           haveit=yes
8633                           break
8634                         fi
8635                       done
8636                       if test -z "$haveit"; then
8637                         ltrpathdirs="$ltrpathdirs $dir"
8638                       fi
8639                     fi
8640                     ;;
8641                   -l*)
8642                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8643                     ;;
8644                   *.la)
8645                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8646                     ;;
8647                   *)
8648                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8649                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8650                     ;;
8651                 esac
8652               done
8653             fi
8654           else
8655                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8656             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8657           fi
8658         fi
8659       fi
8660     done
8661   done
8662   if test "X$rpathdirs" != "X"; then
8663     if test -n "$hardcode_libdir_separator"; then
8664                         alldirs=
8665       for found_dir in $rpathdirs; do
8666         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8667       done
8668             acl_save_libdir="$libdir"
8669       libdir="$alldirs"
8670       eval flag=\"$hardcode_libdir_flag_spec\"
8671       libdir="$acl_save_libdir"
8672       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8673     else
8674             for found_dir in $rpathdirs; do
8675         acl_save_libdir="$libdir"
8676         libdir="$found_dir"
8677         eval flag=\"$hardcode_libdir_flag_spec\"
8678         libdir="$acl_save_libdir"
8679         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8680       done
8681     fi
8682   fi
8683   if test "X$ltrpathdirs" != "X"; then
8684             for found_dir in $ltrpathdirs; do
8685       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8686     done
8687   fi
8688
8689           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
8690 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
8691 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
8692   echo $ECHO_N "(cached) $ECHO_C" >&6
8693 else
8694   gt_save_CPPFLAGS="$CPPFLAGS"
8695             CPPFLAGS="$CPPFLAGS $INCINTL"
8696             gt_save_LIBS="$LIBS"
8697             LIBS="$LIBS $LIBINTL"
8698                         cat >conftest.$ac_ext <<_ACEOF
8699 /* confdefs.h.  */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h.  */
8704 #include <libintl.h>
8705 $gt_revision_test_code
8706 extern int _nl_msg_cat_cntr;
8707 extern
8708 #ifdef __cplusplus
8709 "C"
8710 #endif
8711 const char *_nl_expand_alias (const char *);
8712 int
8713 main ()
8714 {
8715 bindtextdomain ("", "");
8716 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8717   ;
8718   return 0;
8719 }
8720 _ACEOF
8721 rm -f conftest.$ac_objext conftest$ac_exeext
8722 if { (ac_try="$ac_link"
8723 case "(($ac_try" in
8724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725   *) ac_try_echo=$ac_try;;
8726 esac
8727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728   (eval "$ac_link") 2>conftest.er1
8729   ac_status=$?
8730   grep -v '^ *+' conftest.er1 >conftest.err
8731   rm -f conftest.er1
8732   cat conftest.err >&5
8733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734   (exit $ac_status); } && {
8735          test -z "$ac_c_werror_flag" ||
8736          test ! -s conftest.err
8737        } && test -s conftest$ac_exeext &&
8738        $as_test_x conftest$ac_exeext; then
8739   eval "$gt_func_gnugettext_libintl=yes"
8740 else
8741   echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8743
8744         eval "$gt_func_gnugettext_libintl=no"
8745 fi
8746
8747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8748       conftest$ac_exeext conftest.$ac_ext
8749                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8750               LIBS="$LIBS $LIBICONV"
8751               cat >conftest.$ac_ext <<_ACEOF
8752 /* confdefs.h.  */
8753 _ACEOF
8754 cat confdefs.h >>conftest.$ac_ext
8755 cat >>conftest.$ac_ext <<_ACEOF
8756 /* end confdefs.h.  */
8757 #include <libintl.h>
8758 $gt_revision_test_code
8759 extern int _nl_msg_cat_cntr;
8760 extern
8761 #ifdef __cplusplus
8762 "C"
8763 #endif
8764 const char *_nl_expand_alias (const char *);
8765 int
8766 main ()
8767 {
8768 bindtextdomain ("", "");
8769 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8770   ;
8771   return 0;
8772 }
8773 _ACEOF
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (ac_try="$ac_link"
8776 case "(($ac_try" in
8777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778   *) ac_try_echo=$ac_try;;
8779 esac
8780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8781   (eval "$ac_link") 2>conftest.er1
8782   ac_status=$?
8783   grep -v '^ *+' conftest.er1 >conftest.err
8784   rm -f conftest.er1
8785   cat conftest.err >&5
8786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787   (exit $ac_status); } && {
8788          test -z "$ac_c_werror_flag" ||
8789          test ! -s conftest.err
8790        } && test -s conftest$ac_exeext &&
8791        $as_test_x conftest$ac_exeext; then
8792   LIBINTL="$LIBINTL $LIBICONV"
8793                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8794                 eval "$gt_func_gnugettext_libintl=yes"
8795
8796 else
8797   echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8799
8800
8801 fi
8802
8803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8804       conftest$ac_exeext conftest.$ac_ext
8805             fi
8806             CPPFLAGS="$gt_save_CPPFLAGS"
8807             LIBS="$gt_save_LIBS"
8808 fi
8809 ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
8810                { echo "$as_me:$LINENO: result: $ac_res" >&5
8811 echo "${ECHO_T}$ac_res" >&6; }
8812         fi
8813
8814                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8815            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8816                 && test "$PACKAGE" != gettext-runtime \
8817                 && test "$PACKAGE" != gettext-tools; }; then
8818           gt_use_preinstalled_gnugettext=yes
8819         else
8820                     LIBINTL=
8821           LTLIBINTL=
8822           INCINTL=
8823         fi
8824
8825
8826
8827     if test -n "$INTL_MACOSX_LIBS"; then
8828       if test "$gt_use_preinstalled_gnugettext" = "yes" \
8829          || test "$nls_cv_use_gnu_gettext" = "yes"; then
8830                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8831         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8832       fi
8833     fi
8834
8835     if test "$gt_use_preinstalled_gnugettext" = "yes" \
8836        || test "$nls_cv_use_gnu_gettext" = "yes"; then
8837
8838 cat >>confdefs.h <<\_ACEOF
8839 #define ENABLE_NLS 1
8840 _ACEOF
8841
8842     else
8843       USE_NLS=no
8844     fi
8845   fi
8846
8847   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
8848 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
8849   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
8850 echo "${ECHO_T}$USE_NLS" >&6; }
8851   if test "$USE_NLS" = "yes"; then
8852     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
8853 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
8854     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8855       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8856         gt_source="external libintl"
8857       else
8858         gt_source="libc"
8859       fi
8860     else
8861       gt_source="included intl directory"
8862     fi
8863     { echo "$as_me:$LINENO: result: $gt_source" >&5
8864 echo "${ECHO_T}$gt_source" >&6; }
8865   fi
8866
8867   if test "$USE_NLS" = "yes"; then
8868
8869     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8870       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8871         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
8872 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
8873         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
8874 echo "${ECHO_T}$LIBINTL" >&6; }
8875
8876   for element in $INCINTL; do
8877     haveit=
8878     for x in $CPPFLAGS; do
8879
8880   acl_save_prefix="$prefix"
8881   prefix="$acl_final_prefix"
8882   acl_save_exec_prefix="$exec_prefix"
8883   exec_prefix="$acl_final_exec_prefix"
8884   eval x=\"$x\"
8885   exec_prefix="$acl_save_exec_prefix"
8886   prefix="$acl_save_prefix"
8887
8888       if test "X$x" = "X$element"; then
8889         haveit=yes
8890         break
8891       fi
8892     done
8893     if test -z "$haveit"; then
8894       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8895     fi
8896   done
8897
8898       fi
8899
8900
8901 cat >>confdefs.h <<\_ACEOF
8902 #define HAVE_GETTEXT 1
8903 _ACEOF
8904
8905
8906 cat >>confdefs.h <<\_ACEOF
8907 #define HAVE_DCGETTEXT 1
8908 _ACEOF
8909
8910     fi
8911
8912         POSUB=po
8913   fi
8914
8915
8916
8917     INTLLIBS="$LIBINTL"
8918
8919
8920
8921
8922
8923
8924
8925
8926 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
8927 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
8928 if test "${ac_cv_func_closedir_void+set}" = set; then
8929   echo $ECHO_N "(cached) $ECHO_C" >&6
8930 else
8931   if test "$cross_compiling" = yes; then
8932   ac_cv_func_closedir_void=yes
8933 else
8934   cat >conftest.$ac_ext <<_ACEOF
8935 /* confdefs.h.  */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h.  */
8940 $ac_includes_default
8941 #include <$ac_header_dirent>
8942 #ifndef __cplusplus
8943 int closedir ();
8944 #endif
8945
8946 int
8947 main ()
8948 {
8949 return closedir (opendir (".")) != 0;
8950   ;
8951   return 0;
8952 }
8953 _ACEOF
8954 rm -f conftest$ac_exeext
8955 if { (ac_try="$ac_link"
8956 case "(($ac_try" in
8957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958   *) ac_try_echo=$ac_try;;
8959 esac
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961   (eval "$ac_link") 2>&5
8962   ac_status=$?
8963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8965   { (case "(($ac_try" in
8966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8967   *) ac_try_echo=$ac_try;;
8968 esac
8969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8970   (eval "$ac_try") 2>&5
8971   ac_status=$?
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); }; }; then
8974   ac_cv_func_closedir_void=no
8975 else
8976   echo "$as_me: program exited with status $ac_status" >&5
8977 echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8979
8980 ( exit $ac_status )
8981 ac_cv_func_closedir_void=yes
8982 fi
8983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8984 fi
8985
8986
8987 fi
8988 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
8989 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
8990 if test $ac_cv_func_closedir_void = yes; then
8991
8992 cat >>confdefs.h <<\_ACEOF
8993 #define CLOSEDIR_VOID 1
8994 _ACEOF
8995
8996 fi
8997
8998 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
8999 # -lseq on Dynix/PTX, -lgen on Unixware.
9000 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
9001 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
9002 if test "${ac_cv_search_getmntent+set}" = set; then
9003   echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005   ac_func_search_save_LIBS=$LIBS
9006 cat >conftest.$ac_ext <<_ACEOF
9007 /* confdefs.h.  */
9008 _ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h.  */
9012
9013 /* Override any GCC internal prototype to avoid an error.
9014    Use char because int might match the return type of a GCC
9015    builtin and then its argument prototype would still apply.  */
9016 #ifdef __cplusplus
9017 extern "C"
9018 #endif
9019 char getmntent ();
9020 int
9021 main ()
9022 {
9023 return getmntent ();
9024   ;
9025   return 0;
9026 }
9027 _ACEOF
9028 for ac_lib in '' sun seq gen; do
9029   if test -z "$ac_lib"; then
9030     ac_res="none required"
9031   else
9032     ac_res=-l$ac_lib
9033     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9034   fi
9035   rm -f conftest.$ac_objext conftest$ac_exeext
9036 if { (ac_try="$ac_link"
9037 case "(($ac_try" in
9038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9039   *) ac_try_echo=$ac_try;;
9040 esac
9041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9042   (eval "$ac_link") 2>conftest.er1
9043   ac_status=$?
9044   grep -v '^ *+' conftest.er1 >conftest.err
9045   rm -f conftest.er1
9046   cat conftest.err >&5
9047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048   (exit $ac_status); } && {
9049          test -z "$ac_c_werror_flag" ||
9050          test ! -s conftest.err
9051        } && test -s conftest$ac_exeext &&
9052        $as_test_x conftest$ac_exeext; then
9053   ac_cv_search_getmntent=$ac_res
9054 else
9055   echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9057
9058
9059 fi
9060
9061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9062       conftest$ac_exeext
9063   if test "${ac_cv_search_getmntent+set}" = set; then
9064   break
9065 fi
9066 done
9067 if test "${ac_cv_search_getmntent+set}" = set; then
9068   :
9069 else
9070   ac_cv_search_getmntent=no
9071 fi
9072 rm conftest.$ac_ext
9073 LIBS=$ac_func_search_save_LIBS
9074 fi
9075 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
9076 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
9077 ac_res=$ac_cv_search_getmntent
9078 if test "$ac_res" != no; then
9079   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9080   ac_cv_func_getmntent=yes
9081
9082 cat >>confdefs.h <<\_ACEOF
9083 #define HAVE_GETMNTENT 1
9084 _ACEOF
9085
9086 else
9087   ac_cv_func_getmntent=no
9088 fi
9089
9090
9091 if test $ac_cv_c_compiler_gnu = yes; then
9092     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
9093 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
9094 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
9095   echo $ECHO_N "(cached) $ECHO_C" >&6
9096 else
9097     ac_pattern="Autoconf.*'x'"
9098   cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h.  */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h.  */
9104 #include <sgtty.h>
9105 Autoconf TIOCGETP
9106 _ACEOF
9107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9108   $EGREP "$ac_pattern" >/dev/null 2>&1; then
9109   ac_cv_prog_gcc_traditional=yes
9110 else
9111   ac_cv_prog_gcc_traditional=no
9112 fi
9113 rm -f conftest*
9114
9115
9116   if test $ac_cv_prog_gcc_traditional = no; then
9117     cat >conftest.$ac_ext <<_ACEOF
9118 /* confdefs.h.  */
9119 _ACEOF
9120 cat confdefs.h >>conftest.$ac_ext
9121 cat >>conftest.$ac_ext <<_ACEOF
9122 /* end confdefs.h.  */
9123 #include <termio.h>
9124 Autoconf TCGETA
9125 _ACEOF
9126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9127   $EGREP "$ac_pattern" >/dev/null 2>&1; then
9128   ac_cv_prog_gcc_traditional=yes
9129 fi
9130 rm -f conftest*
9131
9132   fi
9133 fi
9134 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
9135 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
9136   if test $ac_cv_prog_gcc_traditional = yes; then
9137     CC="$CC -traditional"
9138   fi
9139 fi
9140
9141 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9142 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
9143 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
9144   echo $ECHO_N "(cached) $ECHO_C" >&6
9145 else
9146   rm -f conftest.sym conftest.file
9147 echo >conftest.file
9148 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9149   if test "$cross_compiling" = yes; then
9150   ac_cv_func_lstat_dereferences_slashed_symlink=no
9151 else
9152   cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h.  */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h.  */
9158 $ac_includes_default
9159 int
9160 main ()
9161 {
9162 struct stat sbuf;
9163      /* Linux will dereference the symlink and fail.
9164         That is better in the sense that it means we will not
9165         have to compile and use the lstat wrapper.  */
9166      return lstat ("conftest.sym/", &sbuf) == 0;
9167   ;
9168   return 0;
9169 }
9170 _ACEOF
9171 rm -f conftest$ac_exeext
9172 if { (ac_try="$ac_link"
9173 case "(($ac_try" in
9174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175   *) ac_try_echo=$ac_try;;
9176 esac
9177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9178   (eval "$ac_link") 2>&5
9179   ac_status=$?
9180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9182   { (case "(($ac_try" in
9183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184   *) ac_try_echo=$ac_try;;
9185 esac
9186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187   (eval "$ac_try") 2>&5
9188   ac_status=$?
9189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190   (exit $ac_status); }; }; then
9191   ac_cv_func_lstat_dereferences_slashed_symlink=yes
9192 else
9193   echo "$as_me: program exited with status $ac_status" >&5
9194 echo "$as_me: failed program was:" >&5
9195 sed 's/^/| /' conftest.$ac_ext >&5
9196
9197 ( exit $ac_status )
9198 ac_cv_func_lstat_dereferences_slashed_symlink=no
9199 fi
9200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9201 fi
9202
9203
9204 else
9205   # If the `ln -s' command failed, then we probably don't even
9206   # have an lstat function.
9207   ac_cv_func_lstat_dereferences_slashed_symlink=no
9208 fi
9209 rm -f conftest.sym conftest.file
9210
9211 fi
9212 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9213 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9214
9215 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9216
9217 cat >>confdefs.h <<_ACEOF
9218 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9219 _ACEOF
9220
9221
9222 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
9223   case " $LIBOBJS " in
9224   *" lstat.$ac_objext "* ) ;;
9225   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9226  ;;
9227 esac
9228
9229 fi
9230
9231 { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
9232 echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
9233 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
9234   echo $ECHO_N "(cached) $ECHO_C" >&6
9235 else
9236   if test "$cross_compiling" = yes; then
9237   ac_cv_func_lstat_empty_string_bug=yes
9238 else
9239   cat >conftest.$ac_ext <<_ACEOF
9240 /* confdefs.h.  */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h.  */
9245 $ac_includes_default
9246 int
9247 main ()
9248 {
9249 struct stat sbuf;
9250   return lstat ("", &sbuf) == 0;
9251   ;
9252   return 0;
9253 }
9254 _ACEOF
9255 rm -f conftest$ac_exeext
9256 if { (ac_try="$ac_link"
9257 case "(($ac_try" in
9258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9259   *) ac_try_echo=$ac_try;;
9260 esac
9261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9262   (eval "$ac_link") 2>&5
9263   ac_status=$?
9264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9266   { (case "(($ac_try" in
9267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268   *) ac_try_echo=$ac_try;;
9269 esac
9270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271   (eval "$ac_try") 2>&5
9272   ac_status=$?
9273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274   (exit $ac_status); }; }; then
9275   ac_cv_func_lstat_empty_string_bug=no
9276 else
9277   echo "$as_me: program exited with status $ac_status" >&5
9278 echo "$as_me: failed program was:" >&5
9279 sed 's/^/| /' conftest.$ac_ext >&5
9280
9281 ( exit $ac_status )
9282 ac_cv_func_lstat_empty_string_bug=yes
9283 fi
9284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9285 fi
9286
9287
9288 fi
9289 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
9290 echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
9291 if test $ac_cv_func_lstat_empty_string_bug = yes; then
9292   case " $LIBOBJS " in
9293   *" lstat.$ac_objext "* ) ;;
9294   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9295  ;;
9296 esac
9297
9298
9299 cat >>confdefs.h <<_ACEOF
9300 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
9301 _ACEOF
9302
9303 fi
9304
9305 { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
9306 echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
9307 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
9308   echo $ECHO_N "(cached) $ECHO_C" >&6
9309 else
9310   rm -f conftest.sym conftest.file
9311 echo >conftest.file
9312 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9313   if test "$cross_compiling" = yes; then
9314   ac_cv_func_lstat_dereferences_slashed_symlink=no
9315 else
9316   cat >conftest.$ac_ext <<_ACEOF
9317 /* confdefs.h.  */
9318 _ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h.  */
9322 $ac_includes_default
9323 int
9324 main ()
9325 {
9326 struct stat sbuf;
9327      /* Linux will dereference the symlink and fail.
9328         That is better in the sense that it means we will not
9329         have to compile and use the lstat wrapper.  */
9330      return lstat ("conftest.sym/", &sbuf) == 0;
9331   ;
9332   return 0;
9333 }
9334 _ACEOF
9335 rm -f conftest$ac_exeext
9336 if { (ac_try="$ac_link"
9337 case "(($ac_try" in
9338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339   *) ac_try_echo=$ac_try;;
9340 esac
9341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342   (eval "$ac_link") 2>&5
9343   ac_status=$?
9344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9346   { (case "(($ac_try" in
9347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348   *) ac_try_echo=$ac_try;;
9349 esac
9350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9351   (eval "$ac_try") 2>&5
9352   ac_status=$?
9353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354   (exit $ac_status); }; }; then
9355   ac_cv_func_lstat_dereferences_slashed_symlink=yes
9356 else
9357   echo "$as_me: program exited with status $ac_status" >&5
9358 echo "$as_me: failed program was:" >&5
9359 sed 's/^/| /' conftest.$ac_ext >&5
9360
9361 ( exit $ac_status )
9362 ac_cv_func_lstat_dereferences_slashed_symlink=no
9363 fi
9364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9365 fi
9366
9367
9368 else
9369   # If the `ln -s' command failed, then we probably don't even
9370   # have an lstat function.
9371   ac_cv_func_lstat_dereferences_slashed_symlink=no
9372 fi
9373 rm -f conftest.sym conftest.file
9374
9375 fi
9376 { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
9377 echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9378
9379 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
9380
9381 cat >>confdefs.h <<_ACEOF
9382 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9383 _ACEOF
9384
9385
9386 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
9387   case " $LIBOBJS " in
9388   *" lstat.$ac_objext "* ) ;;
9389   *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
9390  ;;
9391 esac
9392
9393 fi
9394
9395
9396 for ac_header in stdlib.h
9397 do
9398 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9400   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9403   echo $ECHO_N "(cached) $ECHO_C" >&6
9404 fi
9405 ac_res=`eval echo '${'$as_ac_Header'}'`
9406                { echo "$as_me:$LINENO: result: $ac_res" >&5
9407 echo "${ECHO_T}$ac_res" >&6; }
9408 else
9409   # Is the header compilable?
9410 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9411 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9412 cat >conftest.$ac_ext <<_ACEOF
9413 /* confdefs.h.  */
9414 _ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h.  */
9418 $ac_includes_default
9419 #include <$ac_header>
9420 _ACEOF
9421 rm -f conftest.$ac_objext
9422 if { (ac_try="$ac_compile"
9423 case "(($ac_try" in
9424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425   *) ac_try_echo=$ac_try;;
9426 esac
9427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9428   (eval "$ac_compile") 2>conftest.er1
9429   ac_status=$?
9430   grep -v '^ *+' conftest.er1 >conftest.err
9431   rm -f conftest.er1
9432   cat conftest.err >&5
9433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   (exit $ac_status); } && {
9435          test -z "$ac_c_werror_flag" ||
9436          test ! -s conftest.err
9437        } && test -s conftest.$ac_objext; then
9438   ac_header_compiler=yes
9439 else
9440   echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9442
9443         ac_header_compiler=no
9444 fi
9445
9446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9448 echo "${ECHO_T}$ac_header_compiler" >&6; }
9449
9450 # Is the header present?
9451 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9453 cat >conftest.$ac_ext <<_ACEOF
9454 /* confdefs.h.  */
9455 _ACEOF
9456 cat confdefs.h >>conftest.$ac_ext
9457 cat >>conftest.$ac_ext <<_ACEOF
9458 /* end confdefs.h.  */
9459 #include <$ac_header>
9460 _ACEOF
9461 if { (ac_try="$ac_cpp conftest.$ac_ext"
9462 case "(($ac_try" in
9463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9464   *) ac_try_echo=$ac_try;;
9465 esac
9466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9467   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9468   ac_status=$?
9469   grep -v '^ *+' conftest.er1 >conftest.err
9470   rm -f conftest.er1
9471   cat conftest.err >&5
9472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473   (exit $ac_status); } >/dev/null && {
9474          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9475          test ! -s conftest.err
9476        }; then
9477   ac_header_preproc=yes
9478 else
9479   echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9481
9482   ac_header_preproc=no
9483 fi
9484
9485 rm -f conftest.err conftest.$ac_ext
9486 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9487 echo "${ECHO_T}$ac_header_preproc" >&6; }
9488
9489 # So?  What about this header?
9490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9491   yes:no: )
9492     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9494     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9496     ac_header_preproc=yes
9497     ;;
9498   no:yes:* )
9499     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9501     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9502 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9503     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9505     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9506 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9507     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9509     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9511
9512     ;;
9513 esac
9514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9517   echo $ECHO_N "(cached) $ECHO_C" >&6
9518 else
9519   eval "$as_ac_Header=\$ac_header_preproc"
9520 fi
9521 ac_res=`eval echo '${'$as_ac_Header'}'`
9522                { echo "$as_me:$LINENO: result: $ac_res" >&5
9523 echo "${ECHO_T}$ac_res" >&6; }
9524
9525 fi
9526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9527   cat >>confdefs.h <<_ACEOF
9528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9529 _ACEOF
9530
9531 fi
9532
9533 done
9534
9535 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
9536 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
9537 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
9538   echo $ECHO_N "(cached) $ECHO_C" >&6
9539 else
9540   if test "$cross_compiling" = yes; then
9541   ac_cv_func_malloc_0_nonnull=no
9542 else
9543   cat >conftest.$ac_ext <<_ACEOF
9544 /* confdefs.h.  */
9545 _ACEOF
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h.  */
9549 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9550 # include <stdlib.h>
9551 #else
9552 char *malloc ();
9553 #endif
9554
9555 int
9556 main ()
9557 {
9558 return ! malloc (0);
9559   ;
9560   return 0;
9561 }
9562 _ACEOF
9563 rm -f conftest$ac_exeext
9564 if { (ac_try="$ac_link"
9565 case "(($ac_try" in
9566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9567   *) ac_try_echo=$ac_try;;
9568 esac
9569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9570   (eval "$ac_link") 2>&5
9571   ac_status=$?
9572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9574   { (case "(($ac_try" in
9575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576   *) ac_try_echo=$ac_try;;
9577 esac
9578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579   (eval "$ac_try") 2>&5
9580   ac_status=$?
9581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582   (exit $ac_status); }; }; then
9583   ac_cv_func_malloc_0_nonnull=yes
9584 else
9585   echo "$as_me: program exited with status $ac_status" >&5
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9588
9589 ( exit $ac_status )
9590 ac_cv_func_malloc_0_nonnull=no
9591 fi
9592 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9593 fi
9594
9595
9596 fi
9597 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
9598 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
9599 if test $ac_cv_func_malloc_0_nonnull = yes; then
9600
9601 cat >>confdefs.h <<\_ACEOF
9602 #define HAVE_MALLOC 1
9603 _ACEOF
9604
9605 else
9606   cat >>confdefs.h <<\_ACEOF
9607 #define HAVE_MALLOC 0
9608 _ACEOF
9609
9610    case " $LIBOBJS " in
9611   *" malloc.$ac_objext "* ) ;;
9612   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
9613  ;;
9614 esac
9615
9616
9617 cat >>confdefs.h <<\_ACEOF
9618 #define malloc rpl_malloc
9619 _ACEOF
9620
9621 fi
9622
9623
9624
9625 { echo "$as_me:$LINENO: checking for working memcmp" >&5
9626 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
9627 if test "${ac_cv_func_memcmp_working+set}" = set; then
9628   echo $ECHO_N "(cached) $ECHO_C" >&6
9629 else
9630   if test "$cross_compiling" = yes; then
9631   ac_cv_func_memcmp_working=no
9632 else
9633   cat >conftest.$ac_ext <<_ACEOF
9634 /* confdefs.h.  */
9635 _ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h.  */
9639 $ac_includes_default
9640 int
9641 main ()
9642 {
9643
9644   /* Some versions of memcmp are not 8-bit clean.  */
9645   char c0 = '\100', c1 = '\200', c2 = '\201';
9646   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
9647     return 1;
9648
9649   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
9650      or more and with at least one buffer not starting on a 4-byte boundary.
9651      William Lewis provided this test program.   */
9652   {
9653     char foo[21];
9654     char bar[21];
9655     int i;
9656     for (i = 0; i < 4; i++)
9657       {
9658         char *a = foo + i;
9659         char *b = bar + i;
9660         strcpy (a, "--------01111111");
9661         strcpy (b, "--------10000000");
9662         if (memcmp (a, b, 16) >= 0)
9663           return 1;
9664       }
9665     return 0;
9666   }
9667
9668   ;
9669   return 0;
9670 }
9671 _ACEOF
9672 rm -f conftest$ac_exeext
9673 if { (ac_try="$ac_link"
9674 case "(($ac_try" in
9675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9676   *) ac_try_echo=$ac_try;;
9677 esac
9678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9679   (eval "$ac_link") 2>&5
9680   ac_status=$?
9681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9683   { (case "(($ac_try" in
9684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685   *) ac_try_echo=$ac_try;;
9686 esac
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688   (eval "$ac_try") 2>&5
9689   ac_status=$?
9690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691   (exit $ac_status); }; }; then
9692   ac_cv_func_memcmp_working=yes
9693 else
9694   echo "$as_me: program exited with status $ac_status" >&5
9695 echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9697
9698 ( exit $ac_status )
9699 ac_cv_func_memcmp_working=no
9700 fi
9701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9702 fi
9703
9704
9705 fi
9706 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
9707 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
9708 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
9709   *" memcmp.$ac_objext "* ) ;;
9710   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
9711  ;;
9712 esac
9713
9714
9715
9716 for ac_header in stdlib.h
9717 do
9718 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9720   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9723   echo $ECHO_N "(cached) $ECHO_C" >&6
9724 fi
9725 ac_res=`eval echo '${'$as_ac_Header'}'`
9726                { echo "$as_me:$LINENO: result: $ac_res" >&5
9727 echo "${ECHO_T}$ac_res" >&6; }
9728 else
9729   # Is the header compilable?
9730 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9732 cat >conftest.$ac_ext <<_ACEOF
9733 /* confdefs.h.  */
9734 _ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h.  */
9738 $ac_includes_default
9739 #include <$ac_header>
9740 _ACEOF
9741 rm -f conftest.$ac_objext
9742 if { (ac_try="$ac_compile"
9743 case "(($ac_try" in
9744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9745   *) ac_try_echo=$ac_try;;
9746 esac
9747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9748   (eval "$ac_compile") 2>conftest.er1
9749   ac_status=$?
9750   grep -v '^ *+' conftest.er1 >conftest.err
9751   rm -f conftest.er1
9752   cat conftest.err >&5
9753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9754   (exit $ac_status); } && {
9755          test -z "$ac_c_werror_flag" ||
9756          test ! -s conftest.err
9757        } && test -s conftest.$ac_objext; then
9758   ac_header_compiler=yes
9759 else
9760   echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9762
9763         ac_header_compiler=no
9764 fi
9765
9766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9767 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9768 echo "${ECHO_T}$ac_header_compiler" >&6; }
9769
9770 # Is the header present?
9771 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9773 cat >conftest.$ac_ext <<_ACEOF
9774 /* confdefs.h.  */
9775 _ACEOF
9776 cat confdefs.h >>conftest.$ac_ext
9777 cat >>conftest.$ac_ext <<_ACEOF
9778 /* end confdefs.h.  */
9779 #include <$ac_header>
9780 _ACEOF
9781 if { (ac_try="$ac_cpp conftest.$ac_ext"
9782 case "(($ac_try" in
9783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784   *) ac_try_echo=$ac_try;;
9785 esac
9786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9788   ac_status=$?
9789   grep -v '^ *+' conftest.er1 >conftest.err
9790   rm -f conftest.er1
9791   cat conftest.err >&5
9792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793   (exit $ac_status); } >/dev/null && {
9794          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9795          test ! -s conftest.err
9796        }; then
9797   ac_header_preproc=yes
9798 else
9799   echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9801
9802   ac_header_preproc=no
9803 fi
9804
9805 rm -f conftest.err conftest.$ac_ext
9806 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9807 echo "${ECHO_T}$ac_header_preproc" >&6; }
9808
9809 # So?  What about this header?
9810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9811   yes:no: )
9812     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9813 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9814     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9815 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9816     ac_header_preproc=yes
9817     ;;
9818   no:yes:* )
9819     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9820 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9821     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9822 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9823     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9824 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9825     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9826 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9828 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9829     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9830 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9831
9832     ;;
9833 esac
9834 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9835 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9837   echo $ECHO_N "(cached) $ECHO_C" >&6
9838 else
9839   eval "$as_ac_Header=\$ac_header_preproc"
9840 fi
9841 ac_res=`eval echo '${'$as_ac_Header'}'`
9842                { echo "$as_me:$LINENO: result: $ac_res" >&5
9843 echo "${ECHO_T}$ac_res" >&6; }
9844
9845 fi
9846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9847   cat >>confdefs.h <<_ACEOF
9848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9849 _ACEOF
9850
9851 fi
9852
9853 done
9854
9855 { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
9856 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
9857 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
9858   echo $ECHO_N "(cached) $ECHO_C" >&6
9859 else
9860   if test "$cross_compiling" = yes; then
9861   ac_cv_func_realloc_0_nonnull=no
9862 else
9863   cat >conftest.$ac_ext <<_ACEOF
9864 /* confdefs.h.  */
9865 _ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h.  */
9869 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9870 # include <stdlib.h>
9871 #else
9872 char *realloc ();
9873 #endif
9874
9875 int
9876 main ()
9877 {
9878 return ! realloc (0, 0);
9879   ;
9880   return 0;
9881 }
9882 _ACEOF
9883 rm -f conftest$ac_exeext
9884 if { (ac_try="$ac_link"
9885 case "(($ac_try" in
9886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887   *) ac_try_echo=$ac_try;;
9888 esac
9889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9890   (eval "$ac_link") 2>&5
9891   ac_status=$?
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9894   { (case "(($ac_try" in
9895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896   *) ac_try_echo=$ac_try;;
9897 esac
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899   (eval "$ac_try") 2>&5
9900   ac_status=$?
9901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902   (exit $ac_status); }; }; then
9903   ac_cv_func_realloc_0_nonnull=yes
9904 else
9905   echo "$as_me: program exited with status $ac_status" >&5
9906 echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9908
9909 ( exit $ac_status )
9910 ac_cv_func_realloc_0_nonnull=no
9911 fi
9912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9913 fi
9914
9915
9916 fi
9917 { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
9918 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
9919 if test $ac_cv_func_realloc_0_nonnull = yes; then
9920
9921 cat >>confdefs.h <<\_ACEOF
9922 #define HAVE_REALLOC 1
9923 _ACEOF
9924
9925 else
9926   cat >>confdefs.h <<\_ACEOF
9927 #define HAVE_REALLOC 0
9928 _ACEOF
9929
9930    case " $LIBOBJS " in
9931   *" realloc.$ac_objext "* ) ;;
9932   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
9933  ;;
9934 esac
9935
9936
9937 cat >>confdefs.h <<\_ACEOF
9938 #define realloc rpl_realloc
9939 _ACEOF
9940
9941 fi
9942
9943
9944
9945 { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
9946 echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
9947 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
9948   echo $ECHO_N "(cached) $ECHO_C" >&6
9949 else
9950   if test "$cross_compiling" = yes; then
9951   ac_cv_func_stat_empty_string_bug=yes
9952 else
9953   cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h.  */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h.  */
9959 $ac_includes_default
9960 int
9961 main ()
9962 {
9963 struct stat sbuf;
9964   return stat ("", &sbuf) == 0;
9965   ;
9966   return 0;
9967 }
9968 _ACEOF
9969 rm -f conftest$ac_exeext
9970 if { (ac_try="$ac_link"
9971 case "(($ac_try" in
9972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9973   *) ac_try_echo=$ac_try;;
9974 esac
9975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9976   (eval "$ac_link") 2>&5
9977   ac_status=$?
9978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9979   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9980   { (case "(($ac_try" in
9981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9982   *) ac_try_echo=$ac_try;;
9983 esac
9984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9985   (eval "$ac_try") 2>&5
9986   ac_status=$?
9987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988   (exit $ac_status); }; }; then
9989   ac_cv_func_stat_empty_string_bug=no
9990 else
9991   echo "$as_me: program exited with status $ac_status" >&5
9992 echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9994
9995 ( exit $ac_status )
9996 ac_cv_func_stat_empty_string_bug=yes
9997 fi
9998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9999 fi
10000
10001
10002 fi
10003 { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
10004 echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
10005 if test $ac_cv_func_stat_empty_string_bug = yes; then
10006   case " $LIBOBJS " in
10007   *" stat.$ac_objext "* ) ;;
10008   *) LIBOBJS="$LIBOBJS stat.$ac_objext"
10009  ;;
10010 esac
10011
10012
10013 cat >>confdefs.h <<_ACEOF
10014 #define HAVE_STAT_EMPTY_STRING_BUG 1
10015 _ACEOF
10016
10017 fi
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034 for ac_func in atexit getmntent memset nl_langinfo regcomp rpmatch setlocale socket strcasecmp strchr strdup strerror strpbrk strrchr strtoul
10035 do
10036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10040   echo $ECHO_N "(cached) $ECHO_C" >&6
10041 else
10042   cat >conftest.$ac_ext <<_ACEOF
10043 /* confdefs.h.  */
10044 _ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h.  */
10048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10050 #define $ac_func innocuous_$ac_func
10051
10052 /* System header to define __stub macros and hopefully few prototypes,
10053     which can conflict with char $ac_func (); below.
10054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10055     <limits.h> exists even on freestanding compilers.  */
10056
10057 #ifdef __STDC__
10058 # include <limits.h>
10059 #else
10060 # include <assert.h>
10061 #endif
10062
10063 #undef $ac_func
10064
10065 /* Override any GCC internal prototype to avoid an error.
10066    Use char because int might match the return type of a GCC
10067    builtin and then its argument prototype would still apply.  */
10068 #ifdef __cplusplus
10069 extern "C"
10070 #endif
10071 char $ac_func ();
10072 /* The GNU C library defines this for functions which it implements
10073     to always fail with ENOSYS.  Some functions are actually named
10074     something starting with __ and the normal name is an alias.  */
10075 #if defined __stub_$ac_func || defined __stub___$ac_func
10076 choke me
10077 #endif
10078
10079 int
10080 main ()
10081 {
10082 return $ac_func ();
10083   ;
10084   return 0;
10085 }
10086 _ACEOF
10087 rm -f conftest.$ac_objext conftest$ac_exeext
10088 if { (ac_try="$ac_link"
10089 case "(($ac_try" in
10090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091   *) ac_try_echo=$ac_try;;
10092 esac
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094   (eval "$ac_link") 2>conftest.er1
10095   ac_status=$?
10096   grep -v '^ *+' conftest.er1 >conftest.err
10097   rm -f conftest.er1
10098   cat conftest.err >&5
10099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100   (exit $ac_status); } && {
10101          test -z "$ac_c_werror_flag" ||
10102          test ! -s conftest.err
10103        } && test -s conftest$ac_exeext &&
10104        $as_test_x conftest$ac_exeext; then
10105   eval "$as_ac_var=yes"
10106 else
10107   echo "$as_me: failed program was:" >&5
10108 sed 's/^/| /' conftest.$ac_ext >&5
10109
10110         eval "$as_ac_var=no"
10111 fi
10112
10113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10114       conftest$ac_exeext conftest.$ac_ext
10115 fi
10116 ac_res=`eval echo '${'$as_ac_var'}'`
10117                { echo "$as_me:$LINENO: result: $ac_res" >&5
10118 echo "${ECHO_T}$ac_res" >&6; }
10119 if test `eval echo '${'$as_ac_var'}'` = yes; then
10120   cat >>confdefs.h <<_ACEOF
10121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10122 _ACEOF
10123
10124 fi
10125 done
10126
10127
10128 # Check whether --enable-largefile was given.
10129 if test "${enable_largefile+set}" = set; then
10130   enableval=$enable_largefile;
10131 fi
10132
10133 if test "$enable_largefile" != no; then
10134
10135   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10136 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
10137 if test "${ac_cv_sys_largefile_CC+set}" = set; then
10138   echo $ECHO_N "(cached) $ECHO_C" >&6
10139 else
10140   ac_cv_sys_largefile_CC=no
10141      if test "$GCC" != yes; then
10142        ac_save_CC=$CC
10143        while :; do
10144          # IRIX 6.2 and later do not support large files by default,
10145          # so use the C compiler's -n32 option if that helps.
10146          cat >conftest.$ac_ext <<_ACEOF
10147 /* confdefs.h.  */
10148 _ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h.  */
10152 #include <sys/types.h>
10153  /* Check that off_t can represent 2**63 - 1 correctly.
10154     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10155     since some C++ compilers masquerading as C compilers
10156     incorrectly reject 9223372036854775807.  */
10157 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10158   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10159                        && LARGE_OFF_T % 2147483647 == 1)
10160                       ? 1 : -1];
10161 int
10162 main ()
10163 {
10164
10165   ;
10166   return 0;
10167 }
10168 _ACEOF
10169          rm -f conftest.$ac_objext
10170 if { (ac_try="$ac_compile"
10171 case "(($ac_try" in
10172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173   *) ac_try_echo=$ac_try;;
10174 esac
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176   (eval "$ac_compile") 2>conftest.er1
10177   ac_status=$?
10178   grep -v '^ *+' conftest.er1 >conftest.err
10179   rm -f conftest.er1
10180   cat conftest.err >&5
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); } && {
10183          test -z "$ac_c_werror_flag" ||
10184          test ! -s conftest.err
10185        } && test -s conftest.$ac_objext; then
10186   break
10187 else
10188   echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10190
10191
10192 fi
10193
10194 rm -f core conftest.err conftest.$ac_objext
10195          CC="$CC -n32"
10196          rm -f conftest.$ac_objext
10197 if { (ac_try="$ac_compile"
10198 case "(($ac_try" in
10199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200   *) ac_try_echo=$ac_try;;
10201 esac
10202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203   (eval "$ac_compile") 2>conftest.er1
10204   ac_status=$?
10205   grep -v '^ *+' conftest.er1 >conftest.err
10206   rm -f conftest.er1
10207   cat conftest.err >&5
10208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209   (exit $ac_status); } && {
10210          test -z "$ac_c_werror_flag" ||
10211          test ! -s conftest.err
10212        } && test -s conftest.$ac_objext; then
10213   ac_cv_sys_largefile_CC=' -n32'; break
10214 else
10215   echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10217
10218
10219 fi
10220
10221 rm -f core conftest.err conftest.$ac_objext
10222          break
10223        done
10224        CC=$ac_save_CC
10225        rm -f conftest.$ac_ext
10226     fi
10227 fi
10228 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10229 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
10230   if test "$ac_cv_sys_largefile_CC" != no; then
10231     CC=$CC$ac_cv_sys_largefile_CC
10232   fi
10233
10234   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10235 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
10236 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10237   echo $ECHO_N "(cached) $ECHO_C" >&6
10238 else
10239   while :; do
10240   cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h.  */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h.  */
10246 #include <sys/types.h>
10247  /* Check that off_t can represent 2**63 - 1 correctly.
10248     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10249     since some C++ compilers masquerading as C compilers
10250     incorrectly reject 9223372036854775807.  */
10251 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10252   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10253                        && LARGE_OFF_T % 2147483647 == 1)
10254                       ? 1 : -1];
10255 int
10256 main ()
10257 {
10258
10259   ;
10260   return 0;
10261 }
10262 _ACEOF
10263 rm -f conftest.$ac_objext
10264 if { (ac_try="$ac_compile"
10265 case "(($ac_try" in
10266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10267   *) ac_try_echo=$ac_try;;
10268 esac
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270   (eval "$ac_compile") 2>conftest.er1
10271   ac_status=$?
10272   grep -v '^ *+' conftest.er1 >conftest.err
10273   rm -f conftest.er1
10274   cat conftest.err >&5
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); } && {
10277          test -z "$ac_c_werror_flag" ||
10278          test ! -s conftest.err
10279        } && test -s conftest.$ac_objext; then
10280   ac_cv_sys_file_offset_bits=no; break
10281 else
10282   echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10284
10285
10286 fi
10287
10288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10289   cat >conftest.$ac_ext <<_ACEOF
10290 /* confdefs.h.  */
10291 _ACEOF
10292 cat confdefs.h >>conftest.$ac_ext
10293 cat >>conftest.$ac_ext <<_ACEOF
10294 /* end confdefs.h.  */
10295 #define _FILE_OFFSET_BITS 64
10296 #include <sys/types.h>
10297  /* Check that off_t can represent 2**63 - 1 correctly.
10298     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10299     since some C++ compilers masquerading as C compilers
10300     incorrectly reject 9223372036854775807.  */
10301 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10302   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10303                        && LARGE_OFF_T % 2147483647 == 1)
10304                       ? 1 : -1];
10305 int
10306 main ()
10307 {
10308
10309   ;
10310   return 0;
10311 }
10312 _ACEOF
10313 rm -f conftest.$ac_objext
10314 if { (ac_try="$ac_compile"
10315 case "(($ac_try" in
10316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317   *) ac_try_echo=$ac_try;;
10318 esac
10319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320   (eval "$ac_compile") 2>conftest.er1
10321   ac_status=$?
10322   grep -v '^ *+' conftest.er1 >conftest.err
10323   rm -f conftest.er1
10324   cat conftest.err >&5
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); } && {
10327          test -z "$ac_c_werror_flag" ||
10328          test ! -s conftest.err
10329        } && test -s conftest.$ac_objext; then
10330   ac_cv_sys_file_offset_bits=64; break
10331 else
10332   echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.$ac_ext >&5
10334
10335
10336 fi
10337
10338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10339   ac_cv_sys_file_offset_bits=unknown
10340   break
10341 done
10342 fi
10343 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10344 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10345 case $ac_cv_sys_file_offset_bits in #(
10346   no | unknown) ;;
10347   *)
10348 cat >>confdefs.h <<_ACEOF
10349 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10350 _ACEOF
10351 ;;
10352 esac
10353 rm -f conftest*
10354   if test $ac_cv_sys_file_offset_bits = unknown; then
10355     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10356 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
10357 if test "${ac_cv_sys_large_files+set}" = set; then
10358   echo $ECHO_N "(cached) $ECHO_C" >&6
10359 else
10360   while :; do
10361   cat >conftest.$ac_ext <<_ACEOF
10362 /* confdefs.h.  */
10363 _ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h.  */
10367 #include <sys/types.h>
10368  /* Check that off_t can represent 2**63 - 1 correctly.
10369     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10370     since some C++ compilers masquerading as C compilers
10371     incorrectly reject 9223372036854775807.  */
10372 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10373   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10374                        && LARGE_OFF_T % 2147483647 == 1)
10375                       ? 1 : -1];
10376 int
10377 main ()
10378 {
10379
10380   ;
10381   return 0;
10382 }
10383 _ACEOF
10384 rm -f conftest.$ac_objext
10385 if { (ac_try="$ac_compile"
10386 case "(($ac_try" in
10387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388   *) ac_try_echo=$ac_try;;
10389 esac
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391   (eval "$ac_compile") 2>conftest.er1
10392   ac_status=$?
10393   grep -v '^ *+' conftest.er1 >conftest.err
10394   rm -f conftest.er1
10395   cat conftest.err >&5
10396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397   (exit $ac_status); } && {
10398          test -z "$ac_c_werror_flag" ||
10399          test ! -s conftest.err
10400        } && test -s conftest.$ac_objext; then
10401   ac_cv_sys_large_files=no; break
10402 else
10403   echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10405
10406
10407 fi
10408
10409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10410   cat >conftest.$ac_ext <<_ACEOF
10411 /* confdefs.h.  */
10412 _ACEOF
10413 cat confdefs.h >>conftest.$ac_ext
10414 cat >>conftest.$ac_ext <<_ACEOF
10415 /* end confdefs.h.  */
10416 #define _LARGE_FILES 1
10417 #include <sys/types.h>
10418  /* Check that off_t can represent 2**63 - 1 correctly.
10419     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10420     since some C++ compilers masquerading as C compilers
10421     incorrectly reject 9223372036854775807.  */
10422 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10423   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10424                        && LARGE_OFF_T % 2147483647 == 1)
10425                       ? 1 : -1];
10426 int
10427 main ()
10428 {
10429
10430   ;
10431   return 0;
10432 }
10433 _ACEOF
10434 rm -f conftest.$ac_objext
10435 if { (ac_try="$ac_compile"
10436 case "(($ac_try" in
10437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10438   *) ac_try_echo=$ac_try;;
10439 esac
10440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10441   (eval "$ac_compile") 2>conftest.er1
10442   ac_status=$?
10443   grep -v '^ *+' conftest.er1 >conftest.err
10444   rm -f conftest.er1
10445   cat conftest.err >&5
10446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447   (exit $ac_status); } && {
10448          test -z "$ac_c_werror_flag" ||
10449          test ! -s conftest.err
10450        } && test -s conftest.$ac_objext; then
10451   ac_cv_sys_large_files=1; break
10452 else
10453   echo "$as_me: failed program was:" >&5
10454 sed 's/^/| /' conftest.$ac_ext >&5
10455
10456
10457 fi
10458
10459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10460   ac_cv_sys_large_files=unknown
10461   break
10462 done
10463 fi
10464 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10465 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10466 case $ac_cv_sys_large_files in #(
10467   no | unknown) ;;
10468   *)
10469 cat >>confdefs.h <<_ACEOF
10470 #define _LARGE_FILES $ac_cv_sys_large_files
10471 _ACEOF
10472 ;;
10473 esac
10474 rm -f conftest*
10475   fi
10476 fi
10477
10478
10479 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile icons/Makefile po/Makefile.in"
10480
10481 cat >confcache <<\_ACEOF
10482 # This file is a shell script that caches the results of configure
10483 # tests run on this system so they can be shared between configure
10484 # scripts and configure runs, see configure's option --config-cache.
10485 # It is not useful on other systems.  If it contains results you don't
10486 # want to keep, you may remove or edit it.
10487 #
10488 # config.status only pays attention to the cache file if you give it
10489 # the --recheck option to rerun configure.
10490 #
10491 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10492 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10493 # following values.
10494
10495 _ACEOF
10496
10497 # The following way of writing the cache mishandles newlines in values,
10498 # but we know of no workaround that is simple, portable, and efficient.
10499 # So, we kill variables containing newlines.
10500 # Ultrix sh set writes to stderr and can't be redirected directly,
10501 # and sets the high bit in the cache file unless we assign to the vars.
10502 (
10503   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10504     eval ac_val=\$$ac_var
10505     case $ac_val in #(
10506     *${as_nl}*)
10507       case $ac_var in #(
10508       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10509 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10510       esac
10511       case $ac_var in #(
10512       _ | IFS | as_nl) ;; #(
10513       *) $as_unset $ac_var ;;
10514       esac ;;
10515     esac
10516   done
10517
10518   (set) 2>&1 |
10519     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10520     *${as_nl}ac_space=\ *)
10521       # `set' does not quote correctly, so add quotes (double-quote
10522       # substitution turns \\\\ into \\, and sed turns \\ into \).
10523       sed -n \
10524         "s/'/'\\\\''/g;
10525           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10526       ;; #(
10527     *)
10528       # `set' quotes correctly as required by POSIX, so do not add quotes.
10529       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10530       ;;
10531     esac |
10532     sort
10533 ) |
10534   sed '
10535      /^ac_cv_env_/b end
10536      t clear
10537      :clear
10538      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10539      t end
10540      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10541      :end' >>confcache
10542 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10543   if test -w "$cache_file"; then
10544     test "x$cache_file" != "x/dev/null" &&
10545       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10546 echo "$as_me: updating cache $cache_file" >&6;}
10547     cat confcache >$cache_file
10548   else
10549     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10550 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10551   fi
10552 fi
10553 rm -f confcache
10554
10555 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10556 # Let make expand exec_prefix.
10557 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10558
10559 DEFS=-DHAVE_CONFIG_H
10560
10561 ac_libobjs=
10562 ac_ltlibobjs=
10563 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10564   # 1. Remove the extension, and $U if already installed.
10565   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10566   ac_i=`echo "$ac_i" | sed "$ac_script"`
10567   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10568   #    will be set to the directory where LIBOBJS objects are built.
10569   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10570   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10571 done
10572 LIBOBJS=$ac_libobjs
10573
10574 LTLIBOBJS=$ac_ltlibobjs
10575
10576
10577 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10578   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10579 Usually this means the macro was only invoked conditionally." >&5
10580 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10581 Usually this means the macro was only invoked conditionally." >&2;}
10582    { (exit 1); exit 1; }; }
10583 fi
10584 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
10585   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
10586 Usually this means the macro was only invoked conditionally." >&5
10587 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
10588 Usually this means the macro was only invoked conditionally." >&2;}
10589    { (exit 1); exit 1; }; }
10590 fi
10591 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10592   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10593 Usually this means the macro was only invoked conditionally." >&5
10594 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10595 Usually this means the macro was only invoked conditionally." >&2;}
10596    { (exit 1); exit 1; }; }
10597 fi
10598 if test -z "${WANT_PEEKFD_I386_TRUE}" && test -z "${WANT_PEEKFD_I386_FALSE}"; then
10599   { { echo "$as_me:$LINENO: error: conditional \"WANT_PEEKFD_I386\" was never defined.
10600 Usually this means the macro was only invoked conditionally." >&5
10601 echo "$as_me: error: conditional \"WANT_PEEKFD_I386\" was never defined.
10602 Usually this means the macro was only invoked conditionally." >&2;}
10603    { (exit 1); exit 1; }; }
10604 fi
10605 if test -z "${WANT_PEEKFD_X86_64_TRUE}" && test -z "${WANT_PEEKFD_X86_64_FALSE}"; then
10606   { { echo "$as_me:$LINENO: error: conditional \"WANT_PEEKFD_X86_64\" was never defined.
10607 Usually this means the macro was only invoked conditionally." >&5
10608 echo "$as_me: error: conditional \"WANT_PEEKFD_X86_64\" was never defined.
10609 Usually this means the macro was only invoked conditionally." >&2;}
10610    { (exit 1); exit 1; }; }
10611 fi
10612 if test -z "${WANT_PEEKFD_PPC_TRUE}" && test -z "${WANT_PEEKFD_PPC_FALSE}"; then
10613   { { echo "$as_me:$LINENO: error: conditional \"WANT_PEEKFD_PPC\" was never defined.
10614 Usually this means the macro was only invoked conditionally." >&5
10615 echo "$as_me: error: conditional \"WANT_PEEKFD_PPC\" was never defined.
10616 Usually this means the macro was only invoked conditionally." >&2;}
10617    { (exit 1); exit 1; }; }
10618 fi
10619
10620 : ${CONFIG_STATUS=./config.status}
10621 ac_clean_files_save=$ac_clean_files
10622 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10623 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10624 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10625 cat >$CONFIG_STATUS <<_ACEOF
10626 #! $SHELL
10627 # Generated by $as_me.
10628 # Run this file to recreate the current configuration.
10629 # Compiler output produced by configure, useful for debugging
10630 # configure, is in config.log if it exists.
10631
10632 debug=false
10633 ac_cs_recheck=false
10634 ac_cs_silent=false
10635 SHELL=\${CONFIG_SHELL-$SHELL}
10636 _ACEOF
10637
10638 cat >>$CONFIG_STATUS <<\_ACEOF
10639 ## --------------------- ##
10640 ## M4sh Initialization.  ##
10641 ## --------------------- ##
10642
10643 # Be more Bourne compatible
10644 DUALCASE=1; export DUALCASE # for MKS sh
10645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10646   emulate sh
10647   NULLCMD=:
10648   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10649   # is contrary to our usage.  Disable this feature.
10650   alias -g '${1+"$@"}'='"$@"'
10651   setopt NO_GLOB_SUBST
10652 else
10653   case `(set -o) 2>/dev/null` in
10654   *posix*) set -o posix ;;
10655 esac
10656
10657 fi
10658
10659
10660
10661
10662 # PATH needs CR
10663 # Avoid depending upon Character Ranges.
10664 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10665 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10666 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10667 as_cr_digits='0123456789'
10668 as_cr_alnum=$as_cr_Letters$as_cr_digits
10669
10670 # The user is always right.
10671 if test "${PATH_SEPARATOR+set}" != set; then
10672   echo "#! /bin/sh" >conf$$.sh
10673   echo  "exit 0"   >>conf$$.sh
10674   chmod +x conf$$.sh
10675   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10676     PATH_SEPARATOR=';'
10677   else
10678     PATH_SEPARATOR=:
10679   fi
10680   rm -f conf$$.sh
10681 fi
10682
10683 # Support unset when possible.
10684 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10685   as_unset=unset
10686 else
10687   as_unset=false
10688 fi
10689
10690
10691 # IFS
10692 # We need space, tab and new line, in precisely that order.  Quoting is
10693 # there to prevent editors from complaining about space-tab.
10694 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10695 # splitting by setting IFS to empty value.)
10696 as_nl='
10697 '
10698 IFS=" ""        $as_nl"
10699
10700 # Find who we are.  Look in the path if we contain no directory separator.
10701 case $0 in
10702   *[\\/]* ) as_myself=$0 ;;
10703   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10704 for as_dir in $PATH
10705 do
10706   IFS=$as_save_IFS
10707   test -z "$as_dir" && as_dir=.
10708   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10709 done
10710 IFS=$as_save_IFS
10711
10712      ;;
10713 esac
10714 # We did not find ourselves, most probably we were run as `sh COMMAND'
10715 # in which case we are not to be found in the path.
10716 if test "x$as_myself" = x; then
10717   as_myself=$0
10718 fi
10719 if test ! -f "$as_myself"; then
10720   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10721   { (exit 1); exit 1; }
10722 fi
10723
10724 # Work around bugs in pre-3.0 UWIN ksh.
10725 for as_var in ENV MAIL MAILPATH
10726 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10727 done
10728 PS1='$ '
10729 PS2='> '
10730 PS4='+ '
10731
10732 # NLS nuisances.
10733 for as_var in \
10734   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10735   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10736   LC_TELEPHONE LC_TIME
10737 do
10738   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10739     eval $as_var=C; export $as_var
10740   else
10741     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10742   fi
10743 done
10744
10745 # Required to use basename.
10746 if expr a : '\(a\)' >/dev/null 2>&1 &&
10747    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10748   as_expr=expr
10749 else
10750   as_expr=false
10751 fi
10752
10753 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10754   as_basename=basename
10755 else
10756   as_basename=false
10757 fi
10758
10759
10760 # Name of the executable.
10761 as_me=`$as_basename -- "$0" ||
10762 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10763          X"$0" : 'X\(//\)$' \| \
10764          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10765 echo X/"$0" |
10766     sed '/^.*\/\([^/][^/]*\)\/*$/{
10767             s//\1/
10768             q
10769           }
10770           /^X\/\(\/\/\)$/{
10771             s//\1/
10772             q
10773           }
10774           /^X\/\(\/\).*/{
10775             s//\1/
10776             q
10777           }
10778           s/.*/./; q'`
10779
10780 # CDPATH.
10781 $as_unset CDPATH
10782
10783
10784
10785   as_lineno_1=$LINENO
10786   as_lineno_2=$LINENO
10787   test "x$as_lineno_1" != "x$as_lineno_2" &&
10788   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10789
10790   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10791   # uniformly replaced by the line number.  The first 'sed' inserts a
10792   # line-number line after each line using $LINENO; the second 'sed'
10793   # does the real work.  The second script uses 'N' to pair each
10794   # line-number line with the line containing $LINENO, and appends
10795   # trailing '-' during substitution so that $LINENO is not a special
10796   # case at line end.
10797   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10798   # scripts with optimization help from Paolo Bonzini.  Blame Lee
10799   # E. McMahon (1931-1989) for sed's syntax.  :-)
10800   sed -n '
10801     p
10802     /[$]LINENO/=
10803   ' <$as_myself |
10804     sed '
10805       s/[$]LINENO.*/&-/
10806       t lineno
10807       b
10808       :lineno
10809       N
10810       :loop
10811       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10812       t loop
10813       s/-\n.*//
10814     ' >$as_me.lineno &&
10815   chmod +x "$as_me.lineno" ||
10816     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10817    { (exit 1); exit 1; }; }
10818
10819   # Don't try to exec as it changes $[0], causing all sort of problems
10820   # (the dirname of $[0] is not the place where we might find the
10821   # original and so on.  Autoconf is especially sensitive to this).
10822   . "./$as_me.lineno"
10823   # Exit status is that of the last command.
10824   exit
10825 }
10826
10827
10828 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10829   as_dirname=dirname
10830 else
10831   as_dirname=false
10832 fi
10833
10834 ECHO_C= ECHO_N= ECHO_T=
10835 case `echo -n x` in
10836 -n*)
10837   case `echo 'x\c'` in
10838   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10839   *)   ECHO_C='\c';;
10840   esac;;
10841 *)
10842   ECHO_N='-n';;
10843 esac
10844
10845 if expr a : '\(a\)' >/dev/null 2>&1 &&
10846    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10847   as_expr=expr
10848 else
10849   as_expr=false
10850 fi
10851
10852 rm -f conf$$ conf$$.exe conf$$.file
10853 if test -d conf$$.dir; then
10854   rm -f conf$$.dir/conf$$.file
10855 else
10856   rm -f conf$$.dir
10857   mkdir conf$$.dir
10858 fi
10859 echo >conf$$.file
10860 if ln -s conf$$.file conf$$ 2>/dev/null; then
10861   as_ln_s='ln -s'
10862   # ... but there are two gotchas:
10863   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10864   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10865   # In both cases, we have to default to `cp -p'.
10866   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10867     as_ln_s='cp -p'
10868 elif ln conf$$.file conf$$ 2>/dev/null; then
10869   as_ln_s=ln
10870 else
10871   as_ln_s='cp -p'
10872 fi
10873 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10874 rmdir conf$$.dir 2>/dev/null
10875
10876 if mkdir -p . 2>/dev/null; then
10877   as_mkdir_p=:
10878 else
10879   test -d ./-p && rmdir ./-p
10880   as_mkdir_p=false
10881 fi
10882
10883 if test -x / >/dev/null 2>&1; then
10884   as_test_x='test -x'
10885 else
10886   if ls -dL / >/dev/null 2>&1; then
10887     as_ls_L_option=L
10888   else
10889     as_ls_L_option=
10890   fi
10891   as_test_x='
10892     eval sh -c '\''
10893       if test -d "$1"; then
10894         test -d "$1/.";
10895       else
10896         case $1 in
10897         -*)set "./$1";;
10898         esac;
10899         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10900         ???[sx]*):;;*)false;;esac;fi
10901     '\'' sh
10902   '
10903 fi
10904 as_executable_p=$as_test_x
10905
10906 # Sed expression to map a string onto a valid CPP name.
10907 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10908
10909 # Sed expression to map a string onto a valid variable name.
10910 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10911
10912
10913 exec 6>&1
10914
10915 # Save the log message, to keep $[0] and so on meaningful, and to
10916 # report actual input values of CONFIG_FILES etc. instead of their
10917 # values after options handling.
10918 ac_log="
10919 This file was extended by psmisc $as_me 22.6, which was
10920 generated by GNU Autoconf 2.61.  Invocation command line was
10921
10922   CONFIG_FILES    = $CONFIG_FILES
10923   CONFIG_HEADERS  = $CONFIG_HEADERS
10924   CONFIG_LINKS    = $CONFIG_LINKS
10925   CONFIG_COMMANDS = $CONFIG_COMMANDS
10926   $ $0 $@
10927
10928 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10929 "
10930
10931 _ACEOF
10932
10933 cat >>$CONFIG_STATUS <<_ACEOF
10934 # Files that config.status was made for.
10935 config_files="$ac_config_files"
10936 config_headers="$ac_config_headers"
10937 config_commands="$ac_config_commands"
10938
10939 _ACEOF
10940
10941 cat >>$CONFIG_STATUS <<\_ACEOF
10942 ac_cs_usage="\
10943 \`$as_me' instantiates files from templates according to the
10944 current configuration.
10945
10946 Usage: $0 [OPTIONS] [FILE]...
10947
10948   -h, --help       print this help, then exit
10949   -V, --version    print version number and configuration settings, then exit
10950   -q, --quiet      do not print progress messages
10951   -d, --debug      don't remove temporary files
10952       --recheck    update $as_me by reconfiguring in the same conditions
10953   --file=FILE[:TEMPLATE]
10954                    instantiate the configuration file FILE
10955   --header=FILE[:TEMPLATE]
10956                    instantiate the configuration header FILE
10957
10958 Configuration files:
10959 $config_files
10960
10961 Configuration headers:
10962 $config_headers
10963
10964 Configuration commands:
10965 $config_commands
10966
10967 Report bugs to <bug-autoconf@gnu.org>."
10968
10969 _ACEOF
10970 cat >>$CONFIG_STATUS <<_ACEOF
10971 ac_cs_version="\\
10972 psmisc config.status 22.6
10973 configured by $0, generated by GNU Autoconf 2.61,
10974   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10975
10976 Copyright (C) 2006 Free Software Foundation, Inc.
10977 This config.status script is free software; the Free Software Foundation
10978 gives unlimited permission to copy, distribute and modify it."
10979
10980 ac_pwd='$ac_pwd'
10981 srcdir='$srcdir'
10982 INSTALL='$INSTALL'
10983 MKDIR_P='$MKDIR_P'
10984 _ACEOF
10985
10986 cat >>$CONFIG_STATUS <<\_ACEOF
10987 # If no file are specified by the user, then we need to provide default
10988 # value.  By we need to know if files were specified by the user.
10989 ac_need_defaults=:
10990 while test $# != 0
10991 do
10992   case $1 in
10993   --*=*)
10994     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10995     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10996     ac_shift=:
10997     ;;
10998   *)
10999     ac_option=$1
11000     ac_optarg=$2
11001     ac_shift=shift
11002     ;;
11003   esac
11004
11005   case $ac_option in
11006   # Handling of the options.
11007   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11008     ac_cs_recheck=: ;;
11009   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11010     echo "$ac_cs_version"; exit ;;
11011   --debug | --debu | --deb | --de | --d | -d )
11012     debug=: ;;
11013   --file | --fil | --fi | --f )
11014     $ac_shift
11015     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11016     ac_need_defaults=false;;
11017   --header | --heade | --head | --hea )
11018     $ac_shift
11019     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11020     ac_need_defaults=false;;
11021   --he | --h)
11022     # Conflict between --help and --header
11023     { echo "$as_me: error: ambiguous option: $1
11024 Try \`$0 --help' for more information." >&2
11025    { (exit 1); exit 1; }; };;
11026   --help | --hel | -h )
11027     echo "$ac_cs_usage"; exit ;;
11028   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11029   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11030     ac_cs_silent=: ;;
11031
11032   # This is an error.
11033   -*) { echo "$as_me: error: unrecognized option: $1
11034 Try \`$0 --help' for more information." >&2
11035    { (exit 1); exit 1; }; } ;;
11036
11037   *) ac_config_targets="$ac_config_targets $1"
11038      ac_need_defaults=false ;;
11039
11040   esac
11041   shift
11042 done
11043
11044 ac_configure_extra_args=
11045
11046 if $ac_cs_silent; then
11047   exec 6>/dev/null
11048   ac_configure_extra_args="$ac_configure_extra_args --silent"
11049 fi
11050
11051 _ACEOF
11052 cat >>$CONFIG_STATUS <<_ACEOF
11053 if \$ac_cs_recheck; then
11054   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11055   CONFIG_SHELL=$SHELL
11056   export CONFIG_SHELL
11057   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11058 fi
11059
11060 _ACEOF
11061 cat >>$CONFIG_STATUS <<\_ACEOF
11062 exec 5>>config.log
11063 {
11064   echo
11065   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11066 ## Running $as_me. ##
11067 _ASBOX
11068   echo "$ac_log"
11069 } >&5
11070
11071 _ACEOF
11072 cat >>$CONFIG_STATUS <<_ACEOF
11073 #
11074 # INIT-COMMANDS
11075 #
11076 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11077 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11078     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11079     # from automake < 1.5.
11080     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11081     # Capture the value of LINGUAS because we need it to compute CATALOGS.
11082     LINGUAS="${LINGUAS-%UNSET%}"
11083
11084
11085 _ACEOF
11086
11087 cat >>$CONFIG_STATUS <<\_ACEOF
11088
11089 # Handling of arguments.
11090 for ac_config_target in $ac_config_targets
11091 do
11092   case $ac_config_target in
11093     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11094     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11095     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
11096     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11097     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
11098     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11099     "icons/Makefile") CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
11100     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11101
11102   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11103 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11104    { (exit 1); exit 1; }; };;
11105   esac
11106 done
11107
11108
11109 # If the user did not use the arguments to specify the items to instantiate,
11110 # then the envvar interface is used.  Set only those that are not.
11111 # We use the long form for the default assignment because of an extremely
11112 # bizarre bug on SunOS 4.1.3.
11113 if $ac_need_defaults; then
11114   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11115   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11116   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11117 fi
11118
11119 # Have a temporary directory for convenience.  Make it in the build tree
11120 # simply because there is no reason against having it here, and in addition,
11121 # creating and moving files from /tmp can sometimes cause problems.
11122 # Hook for its removal unless debugging.
11123 # Note that there is a small window in which the directory will not be cleaned:
11124 # after its creation but before its name has been assigned to `$tmp'.
11125 $debug ||
11126 {
11127   tmp=
11128   trap 'exit_status=$?
11129   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11130 ' 0
11131   trap '{ (exit 1); exit 1; }' 1 2 13 15
11132 }
11133 # Create a (secure) tmp directory for tmp files.
11134
11135 {
11136   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11137   test -n "$tmp" && test -d "$tmp"
11138 }  ||
11139 {
11140   tmp=./conf$$-$RANDOM
11141   (umask 077 && mkdir "$tmp")
11142 } ||
11143 {
11144    echo "$me: cannot create a temporary directory in ." >&2
11145    { (exit 1); exit 1; }
11146 }
11147
11148 #
11149 # Set up the sed scripts for CONFIG_FILES section.
11150 #
11151
11152 # No need to generate the scripts if there are no CONFIG_FILES.
11153 # This happens for instance when ./config.status config.h
11154 if test -n "$CONFIG_FILES"; then
11155
11156 _ACEOF
11157
11158
11159
11160 ac_delim='%!_!# '
11161 for ac_last_try in false false false false false :; do
11162   cat >conf$$subs.sed <<_ACEOF
11163 SHELL!$SHELL$ac_delim
11164 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11165 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11166 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11167 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11168 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11169 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11170 exec_prefix!$exec_prefix$ac_delim
11171 prefix!$prefix$ac_delim
11172 program_transform_name!$program_transform_name$ac_delim
11173 bindir!$bindir$ac_delim
11174 sbindir!$sbindir$ac_delim
11175 libexecdir!$libexecdir$ac_delim
11176 datarootdir!$datarootdir$ac_delim
11177 datadir!$datadir$ac_delim
11178 sysconfdir!$sysconfdir$ac_delim
11179 sharedstatedir!$sharedstatedir$ac_delim
11180 localstatedir!$localstatedir$ac_delim
11181 includedir!$includedir$ac_delim
11182 oldincludedir!$oldincludedir$ac_delim
11183 docdir!$docdir$ac_delim
11184 infodir!$infodir$ac_delim
11185 htmldir!$htmldir$ac_delim
11186 dvidir!$dvidir$ac_delim
11187 pdfdir!$pdfdir$ac_delim
11188 psdir!$psdir$ac_delim
11189 libdir!$libdir$ac_delim
11190 localedir!$localedir$ac_delim
11191 mandir!$mandir$ac_delim
11192 DEFS!$DEFS$ac_delim
11193 ECHO_C!$ECHO_C$ac_delim
11194 ECHO_N!$ECHO_N$ac_delim
11195 ECHO_T!$ECHO_T$ac_delim
11196 LIBS!$LIBS$ac_delim
11197 build_alias!$build_alias$ac_delim
11198 host_alias!$host_alias$ac_delim
11199 target_alias!$target_alias$ac_delim
11200 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11201 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11202 INSTALL_DATA!$INSTALL_DATA$ac_delim
11203 am__isrc!$am__isrc$ac_delim
11204 CYGPATH_W!$CYGPATH_W$ac_delim
11205 PACKAGE!$PACKAGE$ac_delim
11206 VERSION!$VERSION$ac_delim
11207 ACLOCAL!$ACLOCAL$ac_delim
11208 AUTOCONF!$AUTOCONF$ac_delim
11209 AUTOMAKE!$AUTOMAKE$ac_delim
11210 AUTOHEADER!$AUTOHEADER$ac_delim
11211 MAKEINFO!$MAKEINFO$ac_delim
11212 install_sh!$install_sh$ac_delim
11213 STRIP!$STRIP$ac_delim
11214 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
11215 mkdir_p!$mkdir_p$ac_delim
11216 AWK!$AWK$ac_delim
11217 SET_MAKE!$SET_MAKE$ac_delim
11218 am__leading_dot!$am__leading_dot$ac_delim
11219 AMTAR!$AMTAR$ac_delim
11220 am__tar!$am__tar$ac_delim
11221 am__untar!$am__untar$ac_delim
11222 CXX!$CXX$ac_delim
11223 CXXFLAGS!$CXXFLAGS$ac_delim
11224 LDFLAGS!$LDFLAGS$ac_delim
11225 CPPFLAGS!$CPPFLAGS$ac_delim
11226 ac_ct_CXX!$ac_ct_CXX$ac_delim
11227 EXEEXT!$EXEEXT$ac_delim
11228 OBJEXT!$OBJEXT$ac_delim
11229 DEPDIR!$DEPDIR$ac_delim
11230 am__include!$am__include$ac_delim
11231 am__quote!$am__quote$ac_delim
11232 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
11233 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
11234 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
11235 CXXDEPMODE!$CXXDEPMODE$ac_delim
11236 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
11237 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
11238 CC!$CC$ac_delim
11239 CFLAGS!$CFLAGS$ac_delim
11240 ac_ct_CC!$ac_ct_CC$ac_delim
11241 CCDEPMODE!$CCDEPMODE$ac_delim
11242 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
11243 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
11244 LN_S!$LN_S$ac_delim
11245 WITH_SELINUX!$WITH_SELINUX$ac_delim
11246 SELINUX_LIB!$SELINUX_LIB$ac_delim
11247 WITH_IPV6!$WITH_IPV6$ac_delim
11248 TERMCAP_LIB!$TERMCAP_LIB$ac_delim
11249 CPP!$CPP$ac_delim
11250 GREP!$GREP$ac_delim
11251 EGREP!$EGREP$ac_delim
11252 WANT_PEEKFD_I386_TRUE!$WANT_PEEKFD_I386_TRUE$ac_delim
11253 WANT_PEEKFD_I386_FALSE!$WANT_PEEKFD_I386_FALSE$ac_delim
11254 WANT_PEEKFD_X86_64_TRUE!$WANT_PEEKFD_X86_64_TRUE$ac_delim
11255 WANT_PEEKFD_X86_64_FALSE!$WANT_PEEKFD_X86_64_FALSE$ac_delim
11256 WANT_PEEKFD_PPC_TRUE!$WANT_PEEKFD_PPC_TRUE$ac_delim
11257 WANT_PEEKFD_PPC_FALSE!$WANT_PEEKFD_PPC_FALSE$ac_delim
11258 USE_NLS!$USE_NLS$ac_delim
11259 MSGFMT!$MSGFMT$ac_delim
11260 _ACEOF
11261
11262   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11263     break
11264   elif $ac_last_try; then
11265     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11266 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11267    { (exit 1); exit 1; }; }
11268   else
11269     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11270   fi
11271 done
11272
11273 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11274 if test -n "$ac_eof"; then
11275   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11276   ac_eof=`expr $ac_eof + 1`
11277 fi
11278
11279 cat >>$CONFIG_STATUS <<_ACEOF
11280 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11281 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11282 _ACEOF
11283 sed '
11284 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11285 s/^/s,@/; s/!/@,|#_!!_#|/
11286 :n
11287 t n
11288 s/'"$ac_delim"'$/,g/; t
11289 s/$/\\/; p
11290 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11291 ' >>$CONFIG_STATUS <conf$$subs.sed
11292 rm -f conf$$subs.sed
11293 cat >>$CONFIG_STATUS <<_ACEOF
11294 CEOF$ac_eof
11295 _ACEOF
11296
11297
11298 ac_delim='%!_!# '
11299 for ac_last_try in false false false false false :; do
11300   cat >conf$$subs.sed <<_ACEOF
11301 GMSGFMT!$GMSGFMT$ac_delim
11302 MSGFMT_015!$MSGFMT_015$ac_delim
11303 GMSGFMT_015!$GMSGFMT_015$ac_delim
11304 XGETTEXT!$XGETTEXT$ac_delim
11305 XGETTEXT_015!$XGETTEXT_015$ac_delim
11306 MSGMERGE!$MSGMERGE$ac_delim
11307 build!$build$ac_delim
11308 build_cpu!$build_cpu$ac_delim
11309 build_vendor!$build_vendor$ac_delim
11310 build_os!$build_os$ac_delim
11311 host!$host$ac_delim
11312 host_cpu!$host_cpu$ac_delim
11313 host_vendor!$host_vendor$ac_delim
11314 host_os!$host_os$ac_delim
11315 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
11316 LIBICONV!$LIBICONV$ac_delim
11317 LTLIBICONV!$LTLIBICONV$ac_delim
11318 INTLLIBS!$INTLLIBS$ac_delim
11319 LIBINTL!$LIBINTL$ac_delim
11320 LTLIBINTL!$LTLIBINTL$ac_delim
11321 POSUB!$POSUB$ac_delim
11322 LIBOBJS!$LIBOBJS$ac_delim
11323 LTLIBOBJS!$LTLIBOBJS$ac_delim
11324 _ACEOF
11325
11326   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
11327     break
11328   elif $ac_last_try; then
11329     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11330 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11331    { (exit 1); exit 1; }; }
11332   else
11333     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11334   fi
11335 done
11336
11337 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11338 if test -n "$ac_eof"; then
11339   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11340   ac_eof=`expr $ac_eof + 1`
11341 fi
11342
11343 cat >>$CONFIG_STATUS <<_ACEOF
11344 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11346 _ACEOF
11347 sed '
11348 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11349 s/^/s,@/; s/!/@,|#_!!_#|/
11350 :n
11351 t n
11352 s/'"$ac_delim"'$/,g/; t
11353 s/$/\\/; p
11354 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11355 ' >>$CONFIG_STATUS <conf$$subs.sed
11356 rm -f conf$$subs.sed
11357 cat >>$CONFIG_STATUS <<_ACEOF
11358 :end
11359 s/|#_!!_#|//g
11360 CEOF$ac_eof
11361 _ACEOF
11362
11363
11364 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11365 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11366 # trailing colons and then remove the whole line if VPATH becomes empty
11367 # (actually we leave an empty line to preserve line numbers).
11368 if test "x$srcdir" = x.; then
11369   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11370 s/:*\$(srcdir):*/:/
11371 s/:*\${srcdir}:*/:/
11372 s/:*@srcdir@:*/:/
11373 s/^\([^=]*=[     ]*\):*/\1/
11374 s/:*$//
11375 s/^[^=]*=[       ]*$//
11376 }'
11377 fi
11378
11379 cat >>$CONFIG_STATUS <<\_ACEOF
11380 fi # test -n "$CONFIG_FILES"
11381
11382
11383 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
11384 do
11385   case $ac_tag in
11386   :[FHLC]) ac_mode=$ac_tag; continue;;
11387   esac
11388   case $ac_mode$ac_tag in
11389   :[FHL]*:*);;
11390   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11391 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11392    { (exit 1); exit 1; }; };;
11393   :[FH]-) ac_tag=-:-;;
11394   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11395   esac
11396   ac_save_IFS=$IFS
11397   IFS=:
11398   set x $ac_tag
11399   IFS=$ac_save_IFS
11400   shift
11401   ac_file=$1
11402   shift
11403
11404   case $ac_mode in
11405   :L) ac_source=$1;;
11406   :[FH])
11407     ac_file_inputs=
11408     for ac_f
11409     do
11410       case $ac_f in
11411       -) ac_f="$tmp/stdin";;
11412       *) # Look for the file first in the build tree, then in the source tree
11413          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11414          # because $ac_f cannot contain `:'.
11415          test -f "$ac_f" ||
11416            case $ac_f in
11417            [\\/$]*) false;;
11418            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11419            esac ||
11420            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11421 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11422    { (exit 1); exit 1; }; };;
11423       esac
11424       ac_file_inputs="$ac_file_inputs $ac_f"
11425     done
11426
11427     # Let's still pretend it is `configure' which instantiates (i.e., don't
11428     # use $as_me), people would be surprised to read:
11429     #    /* config.h.  Generated by config.status.  */
11430     configure_input="Generated from "`IFS=:
11431           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11432     if test x"$ac_file" != x-; then
11433       configure_input="$ac_file.  $configure_input"
11434       { echo "$as_me:$LINENO: creating $ac_file" >&5
11435 echo "$as_me: creating $ac_file" >&6;}
11436     fi
11437
11438     case $ac_tag in
11439     *:-:* | *:-) cat >"$tmp/stdin";;
11440     esac
11441     ;;
11442   esac
11443
11444   ac_dir=`$as_dirname -- "$ac_file" ||
11445 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11446          X"$ac_file" : 'X\(//\)[^/]' \| \
11447          X"$ac_file" : 'X\(//\)$' \| \
11448          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11449 echo X"$ac_file" |
11450     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11451             s//\1/
11452             q
11453           }
11454           /^X\(\/\/\)[^/].*/{
11455             s//\1/
11456             q
11457           }
11458           /^X\(\/\/\)$/{
11459             s//\1/
11460             q
11461           }
11462           /^X\(\/\).*/{
11463             s//\1/
11464             q
11465           }
11466           s/.*/./; q'`
11467   { as_dir="$ac_dir"
11468   case $as_dir in #(
11469   -*) as_dir=./$as_dir;;
11470   esac
11471   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11472     as_dirs=
11473     while :; do
11474       case $as_dir in #(
11475       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11476       *) as_qdir=$as_dir;;
11477       esac
11478       as_dirs="'$as_qdir' $as_dirs"
11479       as_dir=`$as_dirname -- "$as_dir" ||
11480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11481          X"$as_dir" : 'X\(//\)[^/]' \| \
11482          X"$as_dir" : 'X\(//\)$' \| \
11483          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11484 echo X"$as_dir" |
11485     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11486             s//\1/
11487             q
11488           }
11489           /^X\(\/\/\)[^/].*/{
11490             s//\1/
11491             q
11492           }
11493           /^X\(\/\/\)$/{
11494             s//\1/
11495             q
11496           }
11497           /^X\(\/\).*/{
11498             s//\1/
11499             q
11500           }
11501           s/.*/./; q'`
11502       test -d "$as_dir" && break
11503     done
11504     test -z "$as_dirs" || eval "mkdir $as_dirs"
11505   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11506 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11507    { (exit 1); exit 1; }; }; }
11508   ac_builddir=.
11509
11510 case "$ac_dir" in
11511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11512 *)
11513   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11514   # A ".." for each directory in $ac_dir_suffix.
11515   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11516   case $ac_top_builddir_sub in
11517   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11518   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11519   esac ;;
11520 esac
11521 ac_abs_top_builddir=$ac_pwd
11522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11523 # for backward compatibility:
11524 ac_top_builddir=$ac_top_build_prefix
11525
11526 case $srcdir in
11527   .)  # We are building in place.
11528     ac_srcdir=.
11529     ac_top_srcdir=$ac_top_builddir_sub
11530     ac_abs_top_srcdir=$ac_pwd ;;
11531   [\\/]* | ?:[\\/]* )  # Absolute name.
11532     ac_srcdir=$srcdir$ac_dir_suffix;
11533     ac_top_srcdir=$srcdir
11534     ac_abs_top_srcdir=$srcdir ;;
11535   *) # Relative name.
11536     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11537     ac_top_srcdir=$ac_top_build_prefix$srcdir
11538     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11539 esac
11540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11541
11542
11543   case $ac_mode in
11544   :F)
11545   #
11546   # CONFIG_FILE
11547   #
11548
11549   case $INSTALL in
11550   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11551   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11552   esac
11553   ac_MKDIR_P=$MKDIR_P
11554   case $MKDIR_P in
11555   [\\/$]* | ?:[\\/]* ) ;;
11556   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11557   esac
11558 _ACEOF
11559
11560 cat >>$CONFIG_STATUS <<\_ACEOF
11561 # If the template does not know about datarootdir, expand it.
11562 # FIXME: This hack should be removed a few years after 2.60.
11563 ac_datarootdir_hack=; ac_datarootdir_seen=
11564
11565 case `sed -n '/datarootdir/ {
11566   p
11567   q
11568 }
11569 /@datadir@/p
11570 /@docdir@/p
11571 /@infodir@/p
11572 /@localedir@/p
11573 /@mandir@/p
11574 ' $ac_file_inputs` in
11575 *datarootdir*) ac_datarootdir_seen=yes;;
11576 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11577   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11578 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11579 _ACEOF
11580 cat >>$CONFIG_STATUS <<_ACEOF
11581   ac_datarootdir_hack='
11582   s&@datadir@&$datadir&g
11583   s&@docdir@&$docdir&g
11584   s&@infodir@&$infodir&g
11585   s&@localedir@&$localedir&g
11586   s&@mandir@&$mandir&g
11587     s&\\\${datarootdir}&$datarootdir&g' ;;
11588 esac
11589 _ACEOF
11590
11591 # Neutralize VPATH when `$srcdir' = `.'.
11592 # Shell code in configure.ac might set extrasub.
11593 # FIXME: do we really want to maintain this feature?
11594 cat >>$CONFIG_STATUS <<_ACEOF
11595   sed "$ac_vpsub
11596 $extrasub
11597 _ACEOF
11598 cat >>$CONFIG_STATUS <<\_ACEOF
11599 :t
11600 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11601 s&@configure_input@&$configure_input&;t t
11602 s&@top_builddir@&$ac_top_builddir_sub&;t t
11603 s&@srcdir@&$ac_srcdir&;t t
11604 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11605 s&@top_srcdir@&$ac_top_srcdir&;t t
11606 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11607 s&@builddir@&$ac_builddir&;t t
11608 s&@abs_builddir@&$ac_abs_builddir&;t t
11609 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11610 s&@INSTALL@&$ac_INSTALL&;t t
11611 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11612 $ac_datarootdir_hack
11613 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11614
11615 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11616   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11617   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11618   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11619 which seems to be undefined.  Please make sure it is defined." >&5
11620 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11621 which seems to be undefined.  Please make sure it is defined." >&2;}
11622
11623   rm -f "$tmp/stdin"
11624   case $ac_file in
11625   -) cat "$tmp/out"; rm -f "$tmp/out";;
11626   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11627   esac
11628  ;;
11629   :H)
11630   #
11631   # CONFIG_HEADER
11632   #
11633 _ACEOF
11634
11635 # Transform confdefs.h into a sed script `conftest.defines', that
11636 # substitutes the proper values into config.h.in to produce config.h.
11637 rm -f conftest.defines conftest.tail
11638 # First, append a space to every undef/define line, to ease matching.
11639 echo 's/$/ /' >conftest.defines
11640 # Then, protect against being on the right side of a sed subst, or in
11641 # an unquoted here document, in config.status.  If some macros were
11642 # called several times there might be several #defines for the same
11643 # symbol, which is useless.  But do not sort them, since the last
11644 # AC_DEFINE must be honored.
11645 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11646 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11647 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11648 # PARAMS is the parameter list in the macro definition--in most cases, it's
11649 # just an empty string.
11650 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
11651 ac_dB='\\)[      (].*,\\1define\\2'
11652 ac_dC=' '
11653 ac_dD=' ,'
11654
11655 uniq confdefs.h |
11656   sed -n '
11657         t rset
11658         :rset
11659         s/^[     ]*#[    ]*define[       ][      ]*//
11660         t ok
11661         d
11662         :ok
11663         s/[\\&,]/\\&/g
11664         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11665         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11666   ' >>conftest.defines
11667
11668 # Remove the space that was appended to ease matching.
11669 # Then replace #undef with comments.  This is necessary, for
11670 # example, in the case of _POSIX_SOURCE, which is predefined and required
11671 # on some systems where configure will not decide to define it.
11672 # (The regexp can be short, since the line contains either #define or #undef.)
11673 echo 's/ $//
11674 s,^[     #]*u.*,/* & */,' >>conftest.defines
11675
11676 # Break up conftest.defines:
11677 ac_max_sed_lines=50
11678
11679 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11680 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11681 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11682 # et cetera.
11683 ac_in='$ac_file_inputs'
11684 ac_out='"$tmp/out1"'
11685 ac_nxt='"$tmp/out2"'
11686
11687 while :
11688 do
11689   # Write a here document:
11690     cat >>$CONFIG_STATUS <<_ACEOF
11691     # First, check the format of the line:
11692     cat >"\$tmp/defines.sed" <<\\CEOF
11693 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
11694 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
11695 b
11696 :def
11697 _ACEOF
11698   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11699   echo 'CEOF
11700     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11701   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11702   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11703   grep . conftest.tail >/dev/null || break
11704   rm -f conftest.defines
11705   mv conftest.tail conftest.defines
11706 done
11707 rm -f conftest.defines conftest.tail
11708
11709 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11710 cat >>$CONFIG_STATUS <<\_ACEOF
11711   if test x"$ac_file" != x-; then
11712     echo "/* $configure_input  */" >"$tmp/config.h"
11713     cat "$ac_result" >>"$tmp/config.h"
11714     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11715       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11716 echo "$as_me: $ac_file is unchanged" >&6;}
11717     else
11718       rm -f $ac_file
11719       mv "$tmp/config.h" $ac_file
11720     fi
11721   else
11722     echo "/* $configure_input  */"
11723     cat "$ac_result"
11724   fi
11725   rm -f "$tmp/out12"
11726 # Compute $ac_file's index in $config_headers.
11727 _am_stamp_count=1
11728 for _am_header in $config_headers :; do
11729   case $_am_header in
11730     $ac_file | $ac_file:* )
11731       break ;;
11732     * )
11733       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11734   esac
11735 done
11736 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
11737 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11738          X$ac_file : 'X\(//\)[^/]' \| \
11739          X$ac_file : 'X\(//\)$' \| \
11740          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
11741 echo X$ac_file |
11742     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11743             s//\1/
11744             q
11745           }
11746           /^X\(\/\/\)[^/].*/{
11747             s//\1/
11748             q
11749           }
11750           /^X\(\/\/\)$/{
11751             s//\1/
11752             q
11753           }
11754           /^X\(\/\).*/{
11755             s//\1/
11756             q
11757           }
11758           s/.*/./; q'`/stamp-h$_am_stamp_count
11759  ;;
11760
11761   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
11762 echo "$as_me: executing $ac_file commands" >&6;}
11763  ;;
11764   esac
11765
11766
11767   case $ac_file$ac_mode in
11768     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
11769   # Strip MF so we end up with the name of the file.
11770   mf=`echo "$mf" | sed -e 's/:.*$//'`
11771   # Check whether this is an Automake generated Makefile or not.
11772   # We used to match only the files named `Makefile.in', but
11773   # some people rename them; so instead we look at the file content.
11774   # Grep'ing the first line is not enough: some people post-process
11775   # each Makefile.in and add a new line on top of each file to say so.
11776   # Grep'ing the whole file is not good either: AIX grep has a line
11777   # limit of 2048, but all sed's we know have understand at least 4000.
11778   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
11779     dirpart=`$as_dirname -- "$mf" ||
11780 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11781          X"$mf" : 'X\(//\)[^/]' \| \
11782          X"$mf" : 'X\(//\)$' \| \
11783          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11784 echo X"$mf" |
11785     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11786             s//\1/
11787             q
11788           }
11789           /^X\(\/\/\)[^/].*/{
11790             s//\1/
11791             q
11792           }
11793           /^X\(\/\/\)$/{
11794             s//\1/
11795             q
11796           }
11797           /^X\(\/\).*/{
11798             s//\1/
11799             q
11800           }
11801           s/.*/./; q'`
11802   else
11803     continue
11804   fi
11805   # Extract the definition of DEPDIR, am__include, and am__quote
11806   # from the Makefile without running `make'.
11807   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11808   test -z "$DEPDIR" && continue
11809   am__include=`sed -n 's/^am__include = //p' < "$mf"`
11810   test -z "am__include" && continue
11811   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11812   # When using ansi2knr, U may be empty or an underscore; expand it
11813   U=`sed -n 's/^U = //p' < "$mf"`
11814   # Find all dependency output files, they are included files with
11815   # $(DEPDIR) in their names.  We invoke sed twice because it is the
11816   # simplest approach to changing $(DEPDIR) to its actual value in the
11817   # expansion.
11818   for file in `sed -n "
11819     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11820        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11821     # Make sure the directory exists.
11822     test -f "$dirpart/$file" && continue
11823     fdir=`$as_dirname -- "$file" ||
11824 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11825          X"$file" : 'X\(//\)[^/]' \| \
11826          X"$file" : 'X\(//\)$' \| \
11827          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11828 echo X"$file" |
11829     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11830             s//\1/
11831             q
11832           }
11833           /^X\(\/\/\)[^/].*/{
11834             s//\1/
11835             q
11836           }
11837           /^X\(\/\/\)$/{
11838             s//\1/
11839             q
11840           }
11841           /^X\(\/\).*/{
11842             s//\1/
11843             q
11844           }
11845           s/.*/./; q'`
11846     { as_dir=$dirpart/$fdir
11847   case $as_dir in #(
11848   -*) as_dir=./$as_dir;;
11849   esac
11850   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11851     as_dirs=
11852     while :; do
11853       case $as_dir in #(
11854       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11855       *) as_qdir=$as_dir;;
11856       esac
11857       as_dirs="'$as_qdir' $as_dirs"
11858       as_dir=`$as_dirname -- "$as_dir" ||
11859 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11860          X"$as_dir" : 'X\(//\)[^/]' \| \
11861          X"$as_dir" : 'X\(//\)$' \| \
11862          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11863 echo X"$as_dir" |
11864     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11865             s//\1/
11866             q
11867           }
11868           /^X\(\/\/\)[^/].*/{
11869             s//\1/
11870             q
11871           }
11872           /^X\(\/\/\)$/{
11873             s//\1/
11874             q
11875           }
11876           /^X\(\/\).*/{
11877             s//\1/
11878             q
11879           }
11880           s/.*/./; q'`
11881       test -d "$as_dir" && break
11882     done
11883     test -z "$as_dirs" || eval "mkdir $as_dirs"
11884   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11885 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11886    { (exit 1); exit 1; }; }; }
11887     # echo "creating $dirpart/$file"
11888     echo '# dummy' > "$dirpart/$file"
11889   done
11890 done
11891  ;;
11892     "po-directories":C)
11893     for ac_file in $CONFIG_FILES; do
11894       # Support "outfile[:infile[:infile...]]"
11895       case "$ac_file" in
11896         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
11897       esac
11898       # PO directories have a Makefile.in generated from Makefile.in.in.
11899       case "$ac_file" in */Makefile.in)
11900         # Adjust a relative srcdir.
11901         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
11902         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
11903         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
11904         # In autoconf-2.13 it is called $ac_given_srcdir.
11905         # In autoconf-2.50 it is called $srcdir.
11906         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
11907         case "$ac_given_srcdir" in
11908           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
11909           /*) top_srcdir="$ac_given_srcdir" ;;
11910           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
11911         esac
11912         # Treat a directory as a PO directory if and only if it has a
11913         # POTFILES.in file. This allows packages to have multiple PO
11914         # directories under different names or in different locations.
11915         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
11916           rm -f "$ac_dir/POTFILES"
11917           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
11918           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
11919           POMAKEFILEDEPS="POTFILES.in"
11920           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
11921           # on $ac_dir but don't depend on user-specified configuration
11922           # parameters.
11923           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
11924             # The LINGUAS file contains the set of available languages.
11925             if test -n "$OBSOLETE_ALL_LINGUAS"; then
11926               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
11927             fi
11928             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
11929             # Hide the ALL_LINGUAS assigment from automake < 1.5.
11930             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
11931             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
11932           else
11933             # The set of available languages was given in configure.in.
11934             # Hide the ALL_LINGUAS assigment from automake < 1.5.
11935             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
11936           fi
11937           # Compute POFILES
11938           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
11939           # Compute UPDATEPOFILES
11940           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
11941           # Compute DUMMYPOFILES
11942           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
11943           # Compute GMOFILES
11944           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
11945           case "$ac_given_srcdir" in
11946             .) srcdirpre= ;;
11947             *) srcdirpre='$(srcdir)/' ;;
11948           esac
11949           POFILES=
11950           UPDATEPOFILES=
11951           DUMMYPOFILES=
11952           GMOFILES=
11953           for lang in $ALL_LINGUAS; do
11954             POFILES="$POFILES $srcdirpre$lang.po"
11955             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
11956             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
11957             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
11958           done
11959           # CATALOGS depends on both $ac_dir and the user's LINGUAS
11960           # environment variable.
11961           INST_LINGUAS=
11962           if test -n "$ALL_LINGUAS"; then
11963             for presentlang in $ALL_LINGUAS; do
11964               useit=no
11965               if test "%UNSET%" != "$LINGUAS"; then
11966                 desiredlanguages="$LINGUAS"
11967               else
11968                 desiredlanguages="$ALL_LINGUAS"
11969               fi
11970               for desiredlang in $desiredlanguages; do
11971                 # Use the presentlang catalog if desiredlang is
11972                 #   a. equal to presentlang, or
11973                 #   b. a variant of presentlang (because in this case,
11974                 #      presentlang can be used as a fallback for messages
11975                 #      which are not translated in the desiredlang catalog).
11976                 case "$desiredlang" in
11977                   "$presentlang"*) useit=yes;;
11978                 esac
11979               done
11980               if test $useit = yes; then
11981                 INST_LINGUAS="$INST_LINGUAS $presentlang"
11982               fi
11983             done
11984           fi
11985           CATALOGS=
11986           if test -n "$INST_LINGUAS"; then
11987             for lang in $INST_LINGUAS; do
11988               CATALOGS="$CATALOGS $lang.gmo"
11989             done
11990           fi
11991           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
11992           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
11993           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
11994             if test -f "$f"; then
11995               case "$f" in
11996                 *.orig | *.bak | *~) ;;
11997                 *) cat "$f" >> "$ac_dir/Makefile" ;;
11998               esac
11999             fi
12000           done
12001         fi
12002         ;;
12003       esac
12004     done ;;
12005
12006   esac
12007 done # for ac_tag
12008
12009
12010 { (exit 0); exit 0; }
12011 _ACEOF
12012 chmod +x $CONFIG_STATUS
12013 ac_clean_files=$ac_clean_files_save
12014
12015
12016 # configure is writing to config.log, and then calls config.status.
12017 # config.status does its own redirection, appending to config.log.
12018 # Unfortunately, on DOS this fails, as config.log is still kept open
12019 # by configure, so config.status won't be able to write to it; its
12020 # output is simply discarded.  So we exec the FD to /dev/null,
12021 # effectively closing config.log, so it can be properly (re)opened and
12022 # appended to by config.status.  When coming back to configure, we
12023 # need to make the FD available again.
12024 if test "$no_create" != yes; then
12025   ac_cs_success=:
12026   ac_config_status_args=
12027   test "$silent" = yes &&
12028     ac_config_status_args="$ac_config_status_args --quiet"
12029   exec 5>/dev/null
12030   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12031   exec 5>>config.log
12032   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12033   # would make configure fail if this is the last instruction.
12034   $ac_cs_success || { (exit 1); exit 1; }
12035 fi
12036