comparison configure @ 27752:7ee8155d48c5

include -lz and -ljpeg when testing for -ltiff
author Ken Raeburn <raeburn@raeburn.org>
date Thu, 17 Feb 2000 20:04:15 +0000
parents 75463d908406
children 7c90c9f169f4
comparison
equal deleted inserted replaced
27751:56bbf1dfa7f2 27752:7ee8155d48c5
4481 fi 4481 fi
4482 rm -f conftest* 4482 rm -f conftest*
4483 fi 4483 fi
4484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4484 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4485 echo "$ac_t""yes" 1>&6 4485 echo "$ac_t""yes" 1>&6
4486 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 4486 tifflibs="-lX11 -lz -lm"
4487 echo "configure:4488: checking for TIFFGetVersion in -ltiff" >&5 4487 # At least one tiff package requires the jpeg library.
4488 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
4489 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4490 echo "configure:4491: checking for TIFFGetVersion in -ltiff" >&5
4488 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` 4491 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4490 echo $ac_n "(cached) $ac_c" 1>&6 4493 echo $ac_n "(cached) $ac_c" 1>&6
4491 else 4494 else
4492 ac_save_LIBS="$LIBS" 4495 ac_save_LIBS="$LIBS"
4493 LIBS="-ltiff -lX11 -lm $LIBS" 4496 LIBS="-ltiff $tifflibs $LIBS"
4494 cat > conftest.$ac_ext <<EOF 4497 cat > conftest.$ac_ext <<EOF
4495 #line 4496 "configure" 4498 #line 4499 "configure"
4496 #include "confdefs.h" 4499 #include "confdefs.h"
4497 /* Override any gcc2 internal prototype to avoid an error. */ 4500 /* Override any gcc2 internal prototype to avoid an error. */
4498 /* We use char because int might match the return type of a gcc2 4501 /* We use char because int might match the return type of a gcc2
4499 builtin and then its argument prototype would still apply. */ 4502 builtin and then its argument prototype would still apply. */
4500 char TIFFGetVersion(); 4503 char TIFFGetVersion();
4501 4504
4502 int main() { 4505 int main() {
4503 TIFFGetVersion() 4506 TIFFGetVersion()
4504 ; return 0; } 4507 ; return 0; }
4505 EOF 4508 EOF
4506 if { (eval echo configure:4507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4509 if { (eval echo configure:4510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4507 rm -rf conftest* 4510 rm -rf conftest*
4508 eval "ac_cv_lib_$ac_lib_var=yes" 4511 eval "ac_cv_lib_$ac_lib_var=yes"
4509 else 4512 else
4510 echo "configure: failed program was:" >&5 4513 echo "configure: failed program was:" >&5
4511 cat conftest.$ac_ext >&5 4514 cat conftest.$ac_ext >&5
4544 if test "${with_gif}" != "no"; then 4547 if test "${with_gif}" != "no"; then
4545 old_c_flags="${CFLAGS}" 4548 old_c_flags="${CFLAGS}"
4546 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" 4549 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}"
4547 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` 4550 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4548 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 4551 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4549 echo "configure:4550: checking for gif_lib.h" >&5 4552 echo "configure:4553: checking for gif_lib.h" >&5
4550 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4553 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4551 echo $ac_n "(cached) $ac_c" 1>&6 4554 echo $ac_n "(cached) $ac_c" 1>&6
4552 else 4555 else
4553 cat > conftest.$ac_ext <<EOF 4556 cat > conftest.$ac_ext <<EOF
4554 #line 4555 "configure" 4557 #line 4558 "configure"
4555 #include "confdefs.h" 4558 #include "confdefs.h"
4556 #include <gif_lib.h> 4559 #include <gif_lib.h>
4557 EOF 4560 EOF
4558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4561 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4559 { (eval echo configure:4560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4562 { (eval echo configure:4563: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4563 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4561 if test -z "$ac_err"; then 4564 if test -z "$ac_err"; then
4562 rm -rf conftest* 4565 rm -rf conftest*
4563 eval "ac_cv_header_$ac_safe=yes" 4566 eval "ac_cv_header_$ac_safe=yes"
4564 else 4567 else
4571 rm -f conftest* 4574 rm -f conftest*
4572 fi 4575 fi
4573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4576 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4574 echo "$ac_t""yes" 1>&6 4577 echo "$ac_t""yes" 1>&6
4575 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 4578 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6
4576 echo "configure:4577: checking for DGifOpen in -lungif" >&5 4579 echo "configure:4580: checking for DGifOpen in -lungif" >&5
4577 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` 4580 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'`
4578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4581 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6 4582 echo $ac_n "(cached) $ac_c" 1>&6
4580 else 4583 else
4581 ac_save_LIBS="$LIBS" 4584 ac_save_LIBS="$LIBS"
4582 LIBS="-lungif -lX11 $LIBS" 4585 LIBS="-lungif -lX11 $LIBS"
4583 cat > conftest.$ac_ext <<EOF 4586 cat > conftest.$ac_ext <<EOF
4584 #line 4585 "configure" 4587 #line 4588 "configure"
4585 #include "confdefs.h" 4588 #include "confdefs.h"
4586 /* Override any gcc2 internal prototype to avoid an error. */ 4589 /* Override any gcc2 internal prototype to avoid an error. */
4587 /* We use char because int might match the return type of a gcc2 4590 /* We use char because int might match the return type of a gcc2
4588 builtin and then its argument prototype would still apply. */ 4591 builtin and then its argument prototype would still apply. */
4589 char DGifOpen(); 4592 char DGifOpen();
4590 4593
4591 int main() { 4594 int main() {
4592 DGifOpen() 4595 DGifOpen()
4593 ; return 0; } 4596 ; return 0; }
4594 EOF 4597 EOF
4595 if { (eval echo configure:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4598 if { (eval echo configure:4599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4596 rm -rf conftest* 4599 rm -rf conftest*
4597 eval "ac_cv_lib_$ac_lib_var=yes" 4600 eval "ac_cv_lib_$ac_lib_var=yes"
4598 else 4601 else
4599 echo "configure: failed program was:" >&5 4602 echo "configure: failed program was:" >&5
4600 cat conftest.$ac_ext >&5 4603 cat conftest.$ac_ext >&5
4627 fi 4630 fi
4628 fi 4631 fi
4629 4632
4630 # If netdb.h doesn't declare h_errno, we must declare it by hand. 4633 # If netdb.h doesn't declare h_errno, we must declare it by hand.
4631 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 4634 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6
4632 echo "configure:4633: checking whether netdb declares h_errno" >&5 4635 echo "configure:4636: checking whether netdb declares h_errno" >&5
4633 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then 4636 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then
4634 echo $ac_n "(cached) $ac_c" 1>&6 4637 echo $ac_n "(cached) $ac_c" 1>&6
4635 else 4638 else
4636 cat > conftest.$ac_ext <<EOF 4639 cat > conftest.$ac_ext <<EOF
4637 #line 4638 "configure" 4640 #line 4641 "configure"
4638 #include "confdefs.h" 4641 #include "confdefs.h"
4639 #include <netdb.h> 4642 #include <netdb.h>
4640 int main() { 4643 int main() {
4641 return h_errno; 4644 return h_errno;
4642 ; return 0; } 4645 ; return 0; }
4643 EOF 4646 EOF
4644 if { (eval echo configure:4645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4647 if { (eval echo configure:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4645 rm -rf conftest* 4648 rm -rf conftest*
4646 emacs_cv_netdb_declares_h_errno=yes 4649 emacs_cv_netdb_declares_h_errno=yes
4647 else 4650 else
4648 echo "configure: failed program was:" >&5 4651 echo "configure: failed program was:" >&5
4649 cat conftest.$ac_ext >&5 4652 cat conftest.$ac_ext >&5
4662 fi 4665 fi
4663 4666
4664 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4667 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4665 # for constant arguments. Useless! 4668 # for constant arguments. Useless!
4666 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 4669 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
4667 echo "configure:4668: checking for working alloca.h" >&5 4670 echo "configure:4671: checking for working alloca.h" >&5
4668 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 4671 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
4669 echo $ac_n "(cached) $ac_c" 1>&6 4672 echo $ac_n "(cached) $ac_c" 1>&6
4670 else 4673 else
4671 cat > conftest.$ac_ext <<EOF 4674 cat > conftest.$ac_ext <<EOF
4672 #line 4673 "configure" 4675 #line 4676 "configure"
4673 #include "confdefs.h" 4676 #include "confdefs.h"
4674 #include <alloca.h> 4677 #include <alloca.h>
4675 int main() { 4678 int main() {
4676 char *p = alloca(2 * sizeof(int)); 4679 char *p = alloca(2 * sizeof(int));
4677 ; return 0; } 4680 ; return 0; }
4678 EOF 4681 EOF
4679 if { (eval echo configure:4680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4682 if { (eval echo configure:4683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4680 rm -rf conftest* 4683 rm -rf conftest*
4681 ac_cv_header_alloca_h=yes 4684 ac_cv_header_alloca_h=yes
4682 else 4685 else
4683 echo "configure: failed program was:" >&5 4686 echo "configure: failed program was:" >&5
4684 cat conftest.$ac_ext >&5 4687 cat conftest.$ac_ext >&5
4695 EOF 4698 EOF
4696 4699
4697 fi 4700 fi
4698 4701
4699 echo $ac_n "checking for alloca""... $ac_c" 1>&6 4702 echo $ac_n "checking for alloca""... $ac_c" 1>&6
4700 echo "configure:4701: checking for alloca" >&5 4703 echo "configure:4704: checking for alloca" >&5
4701 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 4704 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
4702 echo $ac_n "(cached) $ac_c" 1>&6 4705 echo $ac_n "(cached) $ac_c" 1>&6
4703 else 4706 else
4704 cat > conftest.$ac_ext <<EOF 4707 cat > conftest.$ac_ext <<EOF
4705 #line 4706 "configure" 4708 #line 4709 "configure"
4706 #include "confdefs.h" 4709 #include "confdefs.h"
4707 4710
4708 #ifdef __GNUC__ 4711 #ifdef __GNUC__
4709 # define alloca __builtin_alloca 4712 # define alloca __builtin_alloca
4710 #else 4713 #else
4728 4731
4729 int main() { 4732 int main() {
4730 char *p = (char *) alloca(1); 4733 char *p = (char *) alloca(1);
4731 ; return 0; } 4734 ; return 0; }
4732 EOF 4735 EOF
4733 if { (eval echo configure:4734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4736 if { (eval echo configure:4737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4734 rm -rf conftest* 4737 rm -rf conftest*
4735 ac_cv_func_alloca_works=yes 4738 ac_cv_func_alloca_works=yes
4736 else 4739 else
4737 echo "configure: failed program was:" >&5 4740 echo "configure: failed program was:" >&5
4738 cat conftest.$ac_ext >&5 4741 cat conftest.$ac_ext >&5
4760 #define C_ALLOCA 1 4763 #define C_ALLOCA 1
4761 EOF 4764 EOF
4762 4765
4763 4766
4764 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 4767 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
4765 echo "configure:4766: checking whether alloca needs Cray hooks" >&5 4768 echo "configure:4769: checking whether alloca needs Cray hooks" >&5
4766 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 4769 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
4767 echo $ac_n "(cached) $ac_c" 1>&6 4770 echo $ac_n "(cached) $ac_c" 1>&6
4768 else 4771 else
4769 cat > conftest.$ac_ext <<EOF 4772 cat > conftest.$ac_ext <<EOF
4770 #line 4771 "configure" 4773 #line 4774 "configure"
4771 #include "confdefs.h" 4774 #include "confdefs.h"
4772 #if defined(CRAY) && ! defined(CRAY2) 4775 #if defined(CRAY) && ! defined(CRAY2)
4773 webecray 4776 webecray
4774 #else 4777 #else
4775 wenotbecray 4778 wenotbecray
4790 4793
4791 echo "$ac_t""$ac_cv_os_cray" 1>&6 4794 echo "$ac_t""$ac_cv_os_cray" 1>&6
4792 if test $ac_cv_os_cray = yes; then 4795 if test $ac_cv_os_cray = yes; then
4793 for ac_func in _getb67 GETB67 getb67; do 4796 for ac_func in _getb67 GETB67 getb67; do
4794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4797 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4795 echo "configure:4796: checking for $ac_func" >&5 4798 echo "configure:4799: checking for $ac_func" >&5
4796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4799 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4797 echo $ac_n "(cached) $ac_c" 1>&6 4800 echo $ac_n "(cached) $ac_c" 1>&6
4798 else 4801 else
4799 cat > conftest.$ac_ext <<EOF 4802 cat > conftest.$ac_ext <<EOF
4800 #line 4801 "configure" 4803 #line 4804 "configure"
4801 #include "confdefs.h" 4804 #include "confdefs.h"
4802 /* System header to define __stub macros and hopefully few prototypes, 4805 /* System header to define __stub macros and hopefully few prototypes,
4803 which can conflict with char $ac_func(); below. */ 4806 which can conflict with char $ac_func(); below. */
4804 #include <assert.h> 4807 #include <assert.h>
4805 /* Override any gcc2 internal prototype to avoid an error. */ 4808 /* Override any gcc2 internal prototype to avoid an error. */
4818 $ac_func(); 4821 $ac_func();
4819 #endif 4822 #endif
4820 4823
4821 ; return 0; } 4824 ; return 0; }
4822 EOF 4825 EOF
4823 if { (eval echo configure:4824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4826 if { (eval echo configure:4827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4824 rm -rf conftest* 4827 rm -rf conftest*
4825 eval "ac_cv_func_$ac_func=yes" 4828 eval "ac_cv_func_$ac_func=yes"
4826 else 4829 else
4827 echo "configure: failed program was:" >&5 4830 echo "configure: failed program was:" >&5
4828 cat conftest.$ac_ext >&5 4831 cat conftest.$ac_ext >&5
4845 4848
4846 done 4849 done
4847 fi 4850 fi
4848 4851
4849 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 4852 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
4850 echo "configure:4851: checking stack direction for C alloca" >&5 4853 echo "configure:4854: checking stack direction for C alloca" >&5
4851 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 4854 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
4852 echo $ac_n "(cached) $ac_c" 1>&6 4855 echo $ac_n "(cached) $ac_c" 1>&6
4853 else 4856 else
4854 if test "$cross_compiling" = yes; then 4857 if test "$cross_compiling" = yes; then
4855 ac_cv_c_stack_direction=0 4858 ac_cv_c_stack_direction=0
4856 else 4859 else
4857 cat > conftest.$ac_ext <<EOF 4860 cat > conftest.$ac_ext <<EOF
4858 #line 4859 "configure" 4861 #line 4862 "configure"
4859 #include "confdefs.h" 4862 #include "confdefs.h"
4860 find_stack_direction () 4863 find_stack_direction ()
4861 { 4864 {
4862 static char *addr = 0; 4865 static char *addr = 0;
4863 auto char dummy; 4866 auto char dummy;
4872 main () 4875 main ()
4873 { 4876 {
4874 exit (find_stack_direction() < 0); 4877 exit (find_stack_direction() < 0);
4875 } 4878 }
4876 EOF 4879 EOF
4877 if { (eval echo configure:4878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4880 if { (eval echo configure:4881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4878 then 4881 then
4879 ac_cv_c_stack_direction=1 4882 ac_cv_c_stack_direction=1
4880 else 4883 else
4881 echo "configure: failed program was:" >&5 4884 echo "configure: failed program was:" >&5
4882 cat conftest.$ac_ext >&5 4885 cat conftest.$ac_ext >&5
4897 4900
4898 4901
4899 # fmod, logb, and frexp are found in -lm on most systems. 4902 # fmod, logb, and frexp are found in -lm on most systems.
4900 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. 4903 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
4901 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 4904 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6
4902 echo "configure:4903: checking for sqrt in -lm" >&5 4905 echo "configure:4906: checking for sqrt in -lm" >&5
4903 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` 4906 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'`
4904 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4907 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4905 echo $ac_n "(cached) $ac_c" 1>&6 4908 echo $ac_n "(cached) $ac_c" 1>&6
4906 else 4909 else
4907 ac_save_LIBS="$LIBS" 4910 ac_save_LIBS="$LIBS"
4908 LIBS="-lm $LIBS" 4911 LIBS="-lm $LIBS"
4909 cat > conftest.$ac_ext <<EOF 4912 cat > conftest.$ac_ext <<EOF
4910 #line 4911 "configure" 4913 #line 4914 "configure"
4911 #include "confdefs.h" 4914 #include "confdefs.h"
4912 /* Override any gcc2 internal prototype to avoid an error. */ 4915 /* Override any gcc2 internal prototype to avoid an error. */
4913 /* We use char because int might match the return type of a gcc2 4916 /* We use char because int might match the return type of a gcc2
4914 builtin and then its argument prototype would still apply. */ 4917 builtin and then its argument prototype would still apply. */
4915 char sqrt(); 4918 char sqrt();
4916 4919
4917 int main() { 4920 int main() {
4918 sqrt() 4921 sqrt()
4919 ; return 0; } 4922 ; return 0; }
4920 EOF 4923 EOF
4921 if { (eval echo configure:4922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4924 if { (eval echo configure:4925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4922 rm -rf conftest* 4925 rm -rf conftest*
4923 eval "ac_cv_lib_$ac_lib_var=yes" 4926 eval "ac_cv_lib_$ac_lib_var=yes"
4924 else 4927 else
4925 echo "configure: failed program was:" >&5 4928 echo "configure: failed program was:" >&5
4926 cat conftest.$ac_ext >&5 4929 cat conftest.$ac_ext >&5
4946 fi 4949 fi
4947 4950
4948 4951
4949 # Check for mail-locking functions in a "mail" library 4952 # Check for mail-locking functions in a "mail" library
4950 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 4953 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6
4951 echo "configure:4952: checking for maillock in -lmail" >&5 4954 echo "configure:4955: checking for maillock in -lmail" >&5
4952 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` 4955 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'`
4953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 4956 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4954 echo $ac_n "(cached) $ac_c" 1>&6 4957 echo $ac_n "(cached) $ac_c" 1>&6
4955 else 4958 else
4956 ac_save_LIBS="$LIBS" 4959 ac_save_LIBS="$LIBS"
4957 LIBS="-lmail $LIBS" 4960 LIBS="-lmail $LIBS"
4958 cat > conftest.$ac_ext <<EOF 4961 cat > conftest.$ac_ext <<EOF
4959 #line 4960 "configure" 4962 #line 4963 "configure"
4960 #include "confdefs.h" 4963 #include "confdefs.h"
4961 /* Override any gcc2 internal prototype to avoid an error. */ 4964 /* Override any gcc2 internal prototype to avoid an error. */
4962 /* We use char because int might match the return type of a gcc2 4965 /* We use char because int might match the return type of a gcc2
4963 builtin and then its argument prototype would still apply. */ 4966 builtin and then its argument prototype would still apply. */
4964 char maillock(); 4967 char maillock();
4965 4968
4966 int main() { 4969 int main() {
4967 maillock() 4970 maillock()
4968 ; return 0; } 4971 ; return 0; }
4969 EOF 4972 EOF
4970 if { (eval echo configure:4971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4973 if { (eval echo configure:4974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4971 rm -rf conftest* 4974 rm -rf conftest*
4972 eval "ac_cv_lib_$ac_lib_var=yes" 4975 eval "ac_cv_lib_$ac_lib_var=yes"
4973 else 4976 else
4974 echo "configure: failed program was:" >&5 4977 echo "configure: failed program was:" >&5
4975 cat conftest.$ac_ext >&5 4978 cat conftest.$ac_ext >&5
4993 else 4996 else
4994 echo "$ac_t""no" 1>&6 4997 echo "$ac_t""no" 1>&6
4995 fi 4998 fi
4996 4999
4997 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 5000 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6
4998 echo "configure:4999: checking for maillock in -llockfile" >&5 5001 echo "configure:5002: checking for maillock in -llockfile" >&5
4999 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` 5002 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'`
5000 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5003 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5001 echo $ac_n "(cached) $ac_c" 1>&6 5004 echo $ac_n "(cached) $ac_c" 1>&6
5002 else 5005 else
5003 ac_save_LIBS="$LIBS" 5006 ac_save_LIBS="$LIBS"
5004 LIBS="-llockfile $LIBS" 5007 LIBS="-llockfile $LIBS"
5005 cat > conftest.$ac_ext <<EOF 5008 cat > conftest.$ac_ext <<EOF
5006 #line 5007 "configure" 5009 #line 5010 "configure"
5007 #include "confdefs.h" 5010 #include "confdefs.h"
5008 /* Override any gcc2 internal prototype to avoid an error. */ 5011 /* Override any gcc2 internal prototype to avoid an error. */
5009 /* We use char because int might match the return type of a gcc2 5012 /* We use char because int might match the return type of a gcc2
5010 builtin and then its argument prototype would still apply. */ 5013 builtin and then its argument prototype would still apply. */
5011 char maillock(); 5014 char maillock();
5012 5015
5013 int main() { 5016 int main() {
5014 maillock() 5017 maillock()
5015 ; return 0; } 5018 ; return 0; }
5016 EOF 5019 EOF
5017 if { (eval echo configure:5018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5020 if { (eval echo configure:5021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5018 rm -rf conftest* 5021 rm -rf conftest*
5019 eval "ac_cv_lib_$ac_lib_var=yes" 5022 eval "ac_cv_lib_$ac_lib_var=yes"
5020 else 5023 else
5021 echo "configure: failed program was:" >&5 5024 echo "configure: failed program was:" >&5
5022 cat conftest.$ac_ext >&5 5025 cat conftest.$ac_ext >&5
5046 # (no liblockfile.a installed), ensure that we don't need to. 5049 # (no liblockfile.a installed), ensure that we don't need to.
5047 if test "$ac_cv_lib_lockfile_maillock" = no; then 5050 if test "$ac_cv_lib_lockfile_maillock" = no; then
5048 # Extract the first word of "liblockfile.so", so it can be a program name with args. 5051 # Extract the first word of "liblockfile.so", so it can be a program name with args.
5049 set dummy liblockfile.so; ac_word=$2 5052 set dummy liblockfile.so; ac_word=$2
5050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 5053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5051 echo "configure:5052: checking for $ac_word" >&5 5054 echo "configure:5055: checking for $ac_word" >&5
5052 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then 5055 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then
5053 echo $ac_n "(cached) $ac_c" 1>&6 5056 echo $ac_n "(cached) $ac_c" 1>&6
5054 else 5057 else
5055 if test -n "$liblockfile"; then 5058 if test -n "$liblockfile"; then
5056 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. 5059 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
5087 else : 5090 else :
5088 fi 5091 fi
5089 for ac_func in touchlock 5092 for ac_func in touchlock
5090 do 5093 do
5091 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5092 echo "configure:5093: checking for $ac_func" >&5 5095 echo "configure:5096: checking for $ac_func" >&5
5093 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5094 echo $ac_n "(cached) $ac_c" 1>&6 5097 echo $ac_n "(cached) $ac_c" 1>&6
5095 else 5098 else
5096 cat > conftest.$ac_ext <<EOF 5099 cat > conftest.$ac_ext <<EOF
5097 #line 5098 "configure" 5100 #line 5101 "configure"
5098 #include "confdefs.h" 5101 #include "confdefs.h"
5099 /* System header to define __stub macros and hopefully few prototypes, 5102 /* System header to define __stub macros and hopefully few prototypes,
5100 which can conflict with char $ac_func(); below. */ 5103 which can conflict with char $ac_func(); below. */
5101 #include <assert.h> 5104 #include <assert.h>
5102 /* Override any gcc2 internal prototype to avoid an error. */ 5105 /* Override any gcc2 internal prototype to avoid an error. */
5115 $ac_func(); 5118 $ac_func();
5116 #endif 5119 #endif
5117 5120
5118 ; return 0; } 5121 ; return 0; }
5119 EOF 5122 EOF
5120 if { (eval echo configure:5121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5123 if { (eval echo configure:5124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5121 rm -rf conftest* 5124 rm -rf conftest*
5122 eval "ac_cv_func_$ac_func=yes" 5125 eval "ac_cv_func_$ac_func=yes"
5123 else 5126 else
5124 echo "configure: failed program was:" >&5 5127 echo "configure: failed program was:" >&5
5125 cat conftest.$ac_ext >&5 5128 cat conftest.$ac_ext >&5
5143 5146
5144 for ac_hdr in maillock.h 5147 for ac_hdr in maillock.h
5145 do 5148 do
5146 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5149 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5147 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5150 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5148 echo "configure:5149: checking for $ac_hdr" >&5 5151 echo "configure:5152: checking for $ac_hdr" >&5
5149 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5152 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5150 echo $ac_n "(cached) $ac_c" 1>&6 5153 echo $ac_n "(cached) $ac_c" 1>&6
5151 else 5154 else
5152 cat > conftest.$ac_ext <<EOF 5155 cat > conftest.$ac_ext <<EOF
5153 #line 5154 "configure" 5156 #line 5157 "configure"
5154 #include "confdefs.h" 5157 #include "confdefs.h"
5155 #include <$ac_hdr> 5158 #include <$ac_hdr>
5156 EOF 5159 EOF
5157 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5160 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5158 { (eval echo configure:5159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5161 { (eval echo configure:5162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5159 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5162 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5160 if test -z "$ac_err"; then 5163 if test -z "$ac_err"; then
5161 rm -rf conftest* 5164 rm -rf conftest*
5162 eval "ac_cv_header_$ac_safe=yes" 5165 eval "ac_cv_header_$ac_safe=yes"
5163 else 5166 else
5188 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \ 5191 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
5189 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \ 5192 utimes setrlimit setpgid getcwd shutdown strftime getaddrinfo \
5190 __fpending ftello getloadavg mblen mbrlen strsignal setitimer ualarm 5193 __fpending ftello getloadavg mblen mbrlen strsignal setitimer ualarm
5191 do 5194 do
5192 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5195 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5193 echo "configure:5194: checking for $ac_func" >&5 5196 echo "configure:5197: checking for $ac_func" >&5
5194 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5197 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5195 echo $ac_n "(cached) $ac_c" 1>&6 5198 echo $ac_n "(cached) $ac_c" 1>&6
5196 else 5199 else
5197 cat > conftest.$ac_ext <<EOF 5200 cat > conftest.$ac_ext <<EOF
5198 #line 5199 "configure" 5201 #line 5202 "configure"
5199 #include "confdefs.h" 5202 #include "confdefs.h"
5200 /* System header to define __stub macros and hopefully few prototypes, 5203 /* System header to define __stub macros and hopefully few prototypes,
5201 which can conflict with char $ac_func(); below. */ 5204 which can conflict with char $ac_func(); below. */
5202 #include <assert.h> 5205 #include <assert.h>
5203 /* Override any gcc2 internal prototype to avoid an error. */ 5206 /* Override any gcc2 internal prototype to avoid an error. */
5216 $ac_func(); 5219 $ac_func();
5217 #endif 5220 #endif
5218 5221
5219 ; return 0; } 5222 ; return 0; }
5220 EOF 5223 EOF
5221 if { (eval echo configure:5222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5224 if { (eval echo configure:5225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5222 rm -rf conftest* 5225 rm -rf conftest*
5223 eval "ac_cv_func_$ac_func=yes" 5226 eval "ac_cv_func_$ac_func=yes"
5224 else 5227 else
5225 echo "configure: failed program was:" >&5 5228 echo "configure: failed program was:" >&5
5226 cat conftest.$ac_ext >&5 5229 cat conftest.$ac_ext >&5
5246 # Check this now, so that we will NOT find the above functions in ncurses. 5249 # Check this now, so that we will NOT find the above functions in ncurses.
5247 # That is because we have not set up to link ncurses in lib-src. 5250 # That is because we have not set up to link ncurses in lib-src.
5248 # It's better to believe a function is not available 5251 # It's better to believe a function is not available
5249 # than to expect to find it in ncurses. 5252 # than to expect to find it in ncurses.
5250 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 5253 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6
5251 echo "configure:5252: checking for tparm in -lncurses" >&5 5254 echo "configure:5255: checking for tparm in -lncurses" >&5
5252 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` 5255 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'`
5253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5254 echo $ac_n "(cached) $ac_c" 1>&6 5257 echo $ac_n "(cached) $ac_c" 1>&6
5255 else 5258 else
5256 ac_save_LIBS="$LIBS" 5259 ac_save_LIBS="$LIBS"
5257 LIBS="-lncurses $LIBS" 5260 LIBS="-lncurses $LIBS"
5258 cat > conftest.$ac_ext <<EOF 5261 cat > conftest.$ac_ext <<EOF
5259 #line 5260 "configure" 5262 #line 5263 "configure"
5260 #include "confdefs.h" 5263 #include "confdefs.h"
5261 /* Override any gcc2 internal prototype to avoid an error. */ 5264 /* Override any gcc2 internal prototype to avoid an error. */
5262 /* We use char because int might match the return type of a gcc2 5265 /* We use char because int might match the return type of a gcc2
5263 builtin and then its argument prototype would still apply. */ 5266 builtin and then its argument prototype would still apply. */
5264 char tparm(); 5267 char tparm();
5265 5268
5266 int main() { 5269 int main() {
5267 tparm() 5270 tparm()
5268 ; return 0; } 5271 ; return 0; }
5269 EOF 5272 EOF
5270 if { (eval echo configure:5271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5273 if { (eval echo configure:5274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5271 rm -rf conftest* 5274 rm -rf conftest*
5272 eval "ac_cv_lib_$ac_lib_var=yes" 5275 eval "ac_cv_lib_$ac_lib_var=yes"
5273 else 5276 else
5274 echo "configure: failed program was:" >&5 5277 echo "configure: failed program was:" >&5
5275 cat conftest.$ac_ext >&5 5278 cat conftest.$ac_ext >&5
5296 5299
5297 5300
5298 # These tell us which Kerberos-related libraries to use. 5301 # These tell us which Kerberos-related libraries to use.
5299 if test "${with_kerberos+set}" = set; then 5302 if test "${with_kerberos+set}" = set; then
5300 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 5303 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6
5301 echo "configure:5302: checking for com_err in -lcom_err" >&5 5304 echo "configure:5305: checking for com_err in -lcom_err" >&5
5302 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` 5305 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'`
5303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5306 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5304 echo $ac_n "(cached) $ac_c" 1>&6 5307 echo $ac_n "(cached) $ac_c" 1>&6
5305 else 5308 else
5306 ac_save_LIBS="$LIBS" 5309 ac_save_LIBS="$LIBS"
5307 LIBS="-lcom_err $LIBS" 5310 LIBS="-lcom_err $LIBS"
5308 cat > conftest.$ac_ext <<EOF 5311 cat > conftest.$ac_ext <<EOF
5309 #line 5310 "configure" 5312 #line 5313 "configure"
5310 #include "confdefs.h" 5313 #include "confdefs.h"
5311 /* Override any gcc2 internal prototype to avoid an error. */ 5314 /* Override any gcc2 internal prototype to avoid an error. */
5312 /* We use char because int might match the return type of a gcc2 5315 /* We use char because int might match the return type of a gcc2
5313 builtin and then its argument prototype would still apply. */ 5316 builtin and then its argument prototype would still apply. */
5314 char com_err(); 5317 char com_err();
5315 5318
5316 int main() { 5319 int main() {
5317 com_err() 5320 com_err()
5318 ; return 0; } 5321 ; return 0; }
5319 EOF 5322 EOF
5320 if { (eval echo configure:5321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5323 if { (eval echo configure:5324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5321 rm -rf conftest* 5324 rm -rf conftest*
5322 eval "ac_cv_lib_$ac_lib_var=yes" 5325 eval "ac_cv_lib_$ac_lib_var=yes"
5323 else 5326 else
5324 echo "configure: failed program was:" >&5 5327 echo "configure: failed program was:" >&5
5325 cat conftest.$ac_ext >&5 5328 cat conftest.$ac_ext >&5
5343 else 5346 else
5344 echo "$ac_t""no" 1>&6 5347 echo "$ac_t""no" 1>&6
5345 fi 5348 fi
5346 5349
5347 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 5350 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6
5348 echo "configure:5349: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 5351 echo "configure:5352: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
5349 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 5352 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
5350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5351 echo $ac_n "(cached) $ac_c" 1>&6 5354 echo $ac_n "(cached) $ac_c" 1>&6
5352 else 5355 else
5353 ac_save_LIBS="$LIBS" 5356 ac_save_LIBS="$LIBS"
5354 LIBS="-lk5crypto $LIBS" 5357 LIBS="-lk5crypto $LIBS"
5355 cat > conftest.$ac_ext <<EOF 5358 cat > conftest.$ac_ext <<EOF
5356 #line 5357 "configure" 5359 #line 5360 "configure"
5357 #include "confdefs.h" 5360 #include "confdefs.h"
5358 /* Override any gcc2 internal prototype to avoid an error. */ 5361 /* Override any gcc2 internal prototype to avoid an error. */
5359 /* We use char because int might match the return type of a gcc2 5362 /* We use char because int might match the return type of a gcc2
5360 builtin and then its argument prototype would still apply. */ 5363 builtin and then its argument prototype would still apply. */
5361 char mit_des_cbc_encrypt(); 5364 char mit_des_cbc_encrypt();
5362 5365
5363 int main() { 5366 int main() {
5364 mit_des_cbc_encrypt() 5367 mit_des_cbc_encrypt()
5365 ; return 0; } 5368 ; return 0; }
5366 EOF 5369 EOF
5367 if { (eval echo configure:5368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5370 if { (eval echo configure:5371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5368 rm -rf conftest* 5371 rm -rf conftest*
5369 eval "ac_cv_lib_$ac_lib_var=yes" 5372 eval "ac_cv_lib_$ac_lib_var=yes"
5370 else 5373 else
5371 echo "configure: failed program was:" >&5 5374 echo "configure: failed program was:" >&5
5372 cat conftest.$ac_ext >&5 5375 cat conftest.$ac_ext >&5
5390 else 5393 else
5391 echo "$ac_t""no" 1>&6 5394 echo "$ac_t""no" 1>&6
5392 fi 5395 fi
5393 5396
5394 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 5397 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6
5395 echo "configure:5396: checking for mit_des_cbc_encrypt in -lcrypto" >&5 5398 echo "configure:5399: checking for mit_des_cbc_encrypt in -lcrypto" >&5
5396 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` 5399 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'`
5397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5398 echo $ac_n "(cached) $ac_c" 1>&6 5401 echo $ac_n "(cached) $ac_c" 1>&6
5399 else 5402 else
5400 ac_save_LIBS="$LIBS" 5403 ac_save_LIBS="$LIBS"
5401 LIBS="-lcrypto $LIBS" 5404 LIBS="-lcrypto $LIBS"
5402 cat > conftest.$ac_ext <<EOF 5405 cat > conftest.$ac_ext <<EOF
5403 #line 5404 "configure" 5406 #line 5407 "configure"
5404 #include "confdefs.h" 5407 #include "confdefs.h"
5405 /* Override any gcc2 internal prototype to avoid an error. */ 5408 /* Override any gcc2 internal prototype to avoid an error. */
5406 /* We use char because int might match the return type of a gcc2 5409 /* We use char because int might match the return type of a gcc2
5407 builtin and then its argument prototype would still apply. */ 5410 builtin and then its argument prototype would still apply. */
5408 char mit_des_cbc_encrypt(); 5411 char mit_des_cbc_encrypt();
5409 5412
5410 int main() { 5413 int main() {
5411 mit_des_cbc_encrypt() 5414 mit_des_cbc_encrypt()
5412 ; return 0; } 5415 ; return 0; }
5413 EOF 5416 EOF
5414 if { (eval echo configure:5415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5417 if { (eval echo configure:5418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5415 rm -rf conftest* 5418 rm -rf conftest*
5416 eval "ac_cv_lib_$ac_lib_var=yes" 5419 eval "ac_cv_lib_$ac_lib_var=yes"
5417 else 5420 else
5418 echo "configure: failed program was:" >&5 5421 echo "configure: failed program was:" >&5
5419 cat conftest.$ac_ext >&5 5422 cat conftest.$ac_ext >&5
5437 else 5440 else
5438 echo "$ac_t""no" 1>&6 5441 echo "$ac_t""no" 1>&6
5439 fi 5442 fi
5440 5443
5441 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 5444 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6
5442 echo "configure:5443: checking for krb5_init_context in -lkrb5" >&5 5445 echo "configure:5446: checking for krb5_init_context in -lkrb5" >&5
5443 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` 5446 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'`
5444 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5445 echo $ac_n "(cached) $ac_c" 1>&6 5448 echo $ac_n "(cached) $ac_c" 1>&6
5446 else 5449 else
5447 ac_save_LIBS="$LIBS" 5450 ac_save_LIBS="$LIBS"
5448 LIBS="-lkrb5 $LIBS" 5451 LIBS="-lkrb5 $LIBS"
5449 cat > conftest.$ac_ext <<EOF 5452 cat > conftest.$ac_ext <<EOF
5450 #line 5451 "configure" 5453 #line 5454 "configure"
5451 #include "confdefs.h" 5454 #include "confdefs.h"
5452 /* Override any gcc2 internal prototype to avoid an error. */ 5455 /* Override any gcc2 internal prototype to avoid an error. */
5453 /* We use char because int might match the return type of a gcc2 5456 /* We use char because int might match the return type of a gcc2
5454 builtin and then its argument prototype would still apply. */ 5457 builtin and then its argument prototype would still apply. */
5455 char krb5_init_context(); 5458 char krb5_init_context();
5456 5459
5457 int main() { 5460 int main() {
5458 krb5_init_context() 5461 krb5_init_context()
5459 ; return 0; } 5462 ; return 0; }
5460 EOF 5463 EOF
5461 if { (eval echo configure:5462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5464 if { (eval echo configure:5465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5462 rm -rf conftest* 5465 rm -rf conftest*
5463 eval "ac_cv_lib_$ac_lib_var=yes" 5466 eval "ac_cv_lib_$ac_lib_var=yes"
5464 else 5467 else
5465 echo "configure: failed program was:" >&5 5468 echo "configure: failed program was:" >&5
5466 cat conftest.$ac_ext >&5 5469 cat conftest.$ac_ext >&5
5485 echo "$ac_t""no" 1>&6 5488 echo "$ac_t""no" 1>&6
5486 fi 5489 fi
5487 5490
5488 if test "${with_kerberos5+set}" != set; then 5491 if test "${with_kerberos5+set}" != set; then
5489 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 5492 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6
5490 echo "configure:5491: checking for des_cbc_encrypt in -ldes425" >&5 5493 echo "configure:5494: checking for des_cbc_encrypt in -ldes425" >&5
5491 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 5494 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
5492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5495 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5493 echo $ac_n "(cached) $ac_c" 1>&6 5496 echo $ac_n "(cached) $ac_c" 1>&6
5494 else 5497 else
5495 ac_save_LIBS="$LIBS" 5498 ac_save_LIBS="$LIBS"
5496 LIBS="-ldes425 $LIBS" 5499 LIBS="-ldes425 $LIBS"
5497 cat > conftest.$ac_ext <<EOF 5500 cat > conftest.$ac_ext <<EOF
5498 #line 5499 "configure" 5501 #line 5502 "configure"
5499 #include "confdefs.h" 5502 #include "confdefs.h"
5500 /* Override any gcc2 internal prototype to avoid an error. */ 5503 /* Override any gcc2 internal prototype to avoid an error. */
5501 /* We use char because int might match the return type of a gcc2 5504 /* We use char because int might match the return type of a gcc2
5502 builtin and then its argument prototype would still apply. */ 5505 builtin and then its argument prototype would still apply. */
5503 char des_cbc_encrypt(); 5506 char des_cbc_encrypt();
5504 5507
5505 int main() { 5508 int main() {
5506 des_cbc_encrypt() 5509 des_cbc_encrypt()
5507 ; return 0; } 5510 ; return 0; }
5508 EOF 5511 EOF
5509 if { (eval echo configure:5510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5512 if { (eval echo configure:5513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5510 rm -rf conftest* 5513 rm -rf conftest*
5511 eval "ac_cv_lib_$ac_lib_var=yes" 5514 eval "ac_cv_lib_$ac_lib_var=yes"
5512 else 5515 else
5513 echo "configure: failed program was:" >&5 5516 echo "configure: failed program was:" >&5
5514 cat conftest.$ac_ext >&5 5517 cat conftest.$ac_ext >&5
5530 LIBS="-ldes425 $LIBS" 5533 LIBS="-ldes425 $LIBS"
5531 5534
5532 else 5535 else
5533 echo "$ac_t""no" 1>&6 5536 echo "$ac_t""no" 1>&6
5534 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 5537 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6
5535 echo "configure:5536: checking for des_cbc_encrypt in -ldes" >&5 5538 echo "configure:5539: checking for des_cbc_encrypt in -ldes" >&5
5536 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` 5539 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'`
5537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5538 echo $ac_n "(cached) $ac_c" 1>&6 5541 echo $ac_n "(cached) $ac_c" 1>&6
5539 else 5542 else
5540 ac_save_LIBS="$LIBS" 5543 ac_save_LIBS="$LIBS"
5541 LIBS="-ldes $LIBS" 5544 LIBS="-ldes $LIBS"
5542 cat > conftest.$ac_ext <<EOF 5545 cat > conftest.$ac_ext <<EOF
5543 #line 5544 "configure" 5546 #line 5547 "configure"
5544 #include "confdefs.h" 5547 #include "confdefs.h"
5545 /* Override any gcc2 internal prototype to avoid an error. */ 5548 /* Override any gcc2 internal prototype to avoid an error. */
5546 /* We use char because int might match the return type of a gcc2 5549 /* We use char because int might match the return type of a gcc2
5547 builtin and then its argument prototype would still apply. */ 5550 builtin and then its argument prototype would still apply. */
5548 char des_cbc_encrypt(); 5551 char des_cbc_encrypt();
5549 5552
5550 int main() { 5553 int main() {
5551 des_cbc_encrypt() 5554 des_cbc_encrypt()
5552 ; return 0; } 5555 ; return 0; }
5553 EOF 5556 EOF
5554 if { (eval echo configure:5555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5557 if { (eval echo configure:5558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5555 rm -rf conftest* 5558 rm -rf conftest*
5556 eval "ac_cv_lib_$ac_lib_var=yes" 5559 eval "ac_cv_lib_$ac_lib_var=yes"
5557 else 5560 else
5558 echo "configure: failed program was:" >&5 5561 echo "configure: failed program was:" >&5
5559 cat conftest.$ac_ext >&5 5562 cat conftest.$ac_ext >&5
5579 fi 5582 fi
5580 5583
5581 fi 5584 fi
5582 5585
5583 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 5586 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6
5584 echo "configure:5585: checking for krb_get_cred in -lkrb4" >&5 5587 echo "configure:5588: checking for krb_get_cred in -lkrb4" >&5
5585 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` 5588 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'`
5586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5589 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5587 echo $ac_n "(cached) $ac_c" 1>&6 5590 echo $ac_n "(cached) $ac_c" 1>&6
5588 else 5591 else
5589 ac_save_LIBS="$LIBS" 5592 ac_save_LIBS="$LIBS"
5590 LIBS="-lkrb4 $LIBS" 5593 LIBS="-lkrb4 $LIBS"
5591 cat > conftest.$ac_ext <<EOF 5594 cat > conftest.$ac_ext <<EOF
5592 #line 5593 "configure" 5595 #line 5596 "configure"
5593 #include "confdefs.h" 5596 #include "confdefs.h"
5594 /* Override any gcc2 internal prototype to avoid an error. */ 5597 /* Override any gcc2 internal prototype to avoid an error. */
5595 /* We use char because int might match the return type of a gcc2 5598 /* We use char because int might match the return type of a gcc2
5596 builtin and then its argument prototype would still apply. */ 5599 builtin and then its argument prototype would still apply. */
5597 char krb_get_cred(); 5600 char krb_get_cred();
5598 5601
5599 int main() { 5602 int main() {
5600 krb_get_cred() 5603 krb_get_cred()
5601 ; return 0; } 5604 ; return 0; }
5602 EOF 5605 EOF
5603 if { (eval echo configure:5604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5606 if { (eval echo configure:5607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5604 rm -rf conftest* 5607 rm -rf conftest*
5605 eval "ac_cv_lib_$ac_lib_var=yes" 5608 eval "ac_cv_lib_$ac_lib_var=yes"
5606 else 5609 else
5607 echo "configure: failed program was:" >&5 5610 echo "configure: failed program was:" >&5
5608 cat conftest.$ac_ext >&5 5611 cat conftest.$ac_ext >&5
5624 LIBS="-lkrb4 $LIBS" 5627 LIBS="-lkrb4 $LIBS"
5625 5628
5626 else 5629 else
5627 echo "$ac_t""no" 1>&6 5630 echo "$ac_t""no" 1>&6
5628 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 5631 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6
5629 echo "configure:5630: checking for krb_get_cred in -lkrb" >&5 5632 echo "configure:5633: checking for krb_get_cred in -lkrb" >&5
5630 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` 5633 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'`
5631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5632 echo $ac_n "(cached) $ac_c" 1>&6 5635 echo $ac_n "(cached) $ac_c" 1>&6
5633 else 5636 else
5634 ac_save_LIBS="$LIBS" 5637 ac_save_LIBS="$LIBS"
5635 LIBS="-lkrb $LIBS" 5638 LIBS="-lkrb $LIBS"
5636 cat > conftest.$ac_ext <<EOF 5639 cat > conftest.$ac_ext <<EOF
5637 #line 5638 "configure" 5640 #line 5641 "configure"
5638 #include "confdefs.h" 5641 #include "confdefs.h"
5639 /* Override any gcc2 internal prototype to avoid an error. */ 5642 /* Override any gcc2 internal prototype to avoid an error. */
5640 /* We use char because int might match the return type of a gcc2 5643 /* We use char because int might match the return type of a gcc2
5641 builtin and then its argument prototype would still apply. */ 5644 builtin and then its argument prototype would still apply. */
5642 char krb_get_cred(); 5645 char krb_get_cred();
5643 5646
5644 int main() { 5647 int main() {
5645 krb_get_cred() 5648 krb_get_cred()
5646 ; return 0; } 5649 ; return 0; }
5647 EOF 5650 EOF
5648 if { (eval echo configure:5649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5651 if { (eval echo configure:5652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5649 rm -rf conftest* 5652 rm -rf conftest*
5650 eval "ac_cv_lib_$ac_lib_var=yes" 5653 eval "ac_cv_lib_$ac_lib_var=yes"
5651 else 5654 else
5652 echo "configure: failed program was:" >&5 5655 echo "configure: failed program was:" >&5
5653 cat conftest.$ac_ext >&5 5656 cat conftest.$ac_ext >&5
5679 if test "${with_kerberos5+set}" = set; then 5682 if test "${with_kerberos5+set}" = set; then
5680 for ac_hdr in krb5.h 5683 for ac_hdr in krb5.h
5681 do 5684 do
5682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5685 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5684 echo "configure:5685: checking for $ac_hdr" >&5 5687 echo "configure:5688: checking for $ac_hdr" >&5
5685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5688 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5686 echo $ac_n "(cached) $ac_c" 1>&6 5689 echo $ac_n "(cached) $ac_c" 1>&6
5687 else 5690 else
5688 cat > conftest.$ac_ext <<EOF 5691 cat > conftest.$ac_ext <<EOF
5689 #line 5690 "configure" 5692 #line 5693 "configure"
5690 #include "confdefs.h" 5693 #include "confdefs.h"
5691 #include <$ac_hdr> 5694 #include <$ac_hdr>
5692 EOF 5695 EOF
5693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5694 { (eval echo configure:5695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5697 { (eval echo configure:5698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5696 if test -z "$ac_err"; then 5699 if test -z "$ac_err"; then
5697 rm -rf conftest* 5700 rm -rf conftest*
5698 eval "ac_cv_header_$ac_safe=yes" 5701 eval "ac_cv_header_$ac_safe=yes"
5699 else 5702 else
5720 else 5723 else
5721 for ac_hdr in des.h 5724 for ac_hdr in des.h
5722 do 5725 do
5723 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5726 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5724 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5727 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5725 echo "configure:5726: checking for $ac_hdr" >&5 5728 echo "configure:5729: checking for $ac_hdr" >&5
5726 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5729 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5727 echo $ac_n "(cached) $ac_c" 1>&6 5730 echo $ac_n "(cached) $ac_c" 1>&6
5728 else 5731 else
5729 cat > conftest.$ac_ext <<EOF 5732 cat > conftest.$ac_ext <<EOF
5730 #line 5731 "configure" 5733 #line 5734 "configure"
5731 #include "confdefs.h" 5734 #include "confdefs.h"
5732 #include <$ac_hdr> 5735 #include <$ac_hdr>
5733 EOF 5736 EOF
5734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5737 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5735 { (eval echo configure:5736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5738 { (eval echo configure:5739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5739 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5737 if test -z "$ac_err"; then 5740 if test -z "$ac_err"; then
5738 rm -rf conftest* 5741 rm -rf conftest*
5739 eval "ac_cv_header_$ac_safe=yes" 5742 eval "ac_cv_header_$ac_safe=yes"
5740 else 5743 else
5757 echo "$ac_t""no" 1>&6 5760 echo "$ac_t""no" 1>&6
5758 for ac_hdr in kerberosIV/des.h 5761 for ac_hdr in kerberosIV/des.h
5759 do 5762 do
5760 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5763 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5761 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5764 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5762 echo "configure:5763: checking for $ac_hdr" >&5 5765 echo "configure:5766: checking for $ac_hdr" >&5
5763 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5764 echo $ac_n "(cached) $ac_c" 1>&6 5767 echo $ac_n "(cached) $ac_c" 1>&6
5765 else 5768 else
5766 cat > conftest.$ac_ext <<EOF 5769 cat > conftest.$ac_ext <<EOF
5767 #line 5768 "configure" 5770 #line 5771 "configure"
5768 #include "confdefs.h" 5771 #include "confdefs.h"
5769 #include <$ac_hdr> 5772 #include <$ac_hdr>
5770 EOF 5773 EOF
5771 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5772 { (eval echo configure:5773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5775 { (eval echo configure:5776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5773 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5774 if test -z "$ac_err"; then 5777 if test -z "$ac_err"; then
5775 rm -rf conftest* 5778 rm -rf conftest*
5776 eval "ac_cv_header_$ac_safe=yes" 5779 eval "ac_cv_header_$ac_safe=yes"
5777 else 5780 else
5794 echo "$ac_t""no" 1>&6 5797 echo "$ac_t""no" 1>&6
5795 for ac_hdr in kerberos/des.h 5798 for ac_hdr in kerberos/des.h
5796 do 5799 do
5797 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5800 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5798 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5801 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5799 echo "configure:5800: checking for $ac_hdr" >&5 5802 echo "configure:5803: checking for $ac_hdr" >&5
5800 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5803 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5801 echo $ac_n "(cached) $ac_c" 1>&6 5804 echo $ac_n "(cached) $ac_c" 1>&6
5802 else 5805 else
5803 cat > conftest.$ac_ext <<EOF 5806 cat > conftest.$ac_ext <<EOF
5804 #line 5805 "configure" 5807 #line 5808 "configure"
5805 #include "confdefs.h" 5808 #include "confdefs.h"
5806 #include <$ac_hdr> 5809 #include <$ac_hdr>
5807 EOF 5810 EOF
5808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5809 { (eval echo configure:5810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5812 { (eval echo configure:5813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5811 if test -z "$ac_err"; then 5814 if test -z "$ac_err"; then
5812 rm -rf conftest* 5815 rm -rf conftest*
5813 eval "ac_cv_header_$ac_safe=yes" 5816 eval "ac_cv_header_$ac_safe=yes"
5814 else 5817 else
5840 5843
5841 for ac_hdr in krb.h 5844 for ac_hdr in krb.h
5842 do 5845 do
5843 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5846 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5844 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5847 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5845 echo "configure:5846: checking for $ac_hdr" >&5 5848 echo "configure:5849: checking for $ac_hdr" >&5
5846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5847 echo $ac_n "(cached) $ac_c" 1>&6 5850 echo $ac_n "(cached) $ac_c" 1>&6
5848 else 5851 else
5849 cat > conftest.$ac_ext <<EOF 5852 cat > conftest.$ac_ext <<EOF
5850 #line 5851 "configure" 5853 #line 5854 "configure"
5851 #include "confdefs.h" 5854 #include "confdefs.h"
5852 #include <$ac_hdr> 5855 #include <$ac_hdr>
5853 EOF 5856 EOF
5854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5855 { (eval echo configure:5856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5858 { (eval echo configure:5859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5857 if test -z "$ac_err"; then 5860 if test -z "$ac_err"; then
5858 rm -rf conftest* 5861 rm -rf conftest*
5859 eval "ac_cv_header_$ac_safe=yes" 5862 eval "ac_cv_header_$ac_safe=yes"
5860 else 5863 else
5877 echo "$ac_t""no" 1>&6 5880 echo "$ac_t""no" 1>&6
5878 for ac_hdr in kerberosIV/krb.h 5881 for ac_hdr in kerberosIV/krb.h
5879 do 5882 do
5880 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5883 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5881 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5884 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5882 echo "configure:5883: checking for $ac_hdr" >&5 5885 echo "configure:5886: checking for $ac_hdr" >&5
5883 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5886 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5884 echo $ac_n "(cached) $ac_c" 1>&6 5887 echo $ac_n "(cached) $ac_c" 1>&6
5885 else 5888 else
5886 cat > conftest.$ac_ext <<EOF 5889 cat > conftest.$ac_ext <<EOF
5887 #line 5888 "configure" 5890 #line 5891 "configure"
5888 #include "confdefs.h" 5891 #include "confdefs.h"
5889 #include <$ac_hdr> 5892 #include <$ac_hdr>
5890 EOF 5893 EOF
5891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5892 { (eval echo configure:5893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5895 { (eval echo configure:5896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5894 if test -z "$ac_err"; then 5897 if test -z "$ac_err"; then
5895 rm -rf conftest* 5898 rm -rf conftest*
5896 eval "ac_cv_header_$ac_safe=yes" 5899 eval "ac_cv_header_$ac_safe=yes"
5897 else 5900 else
5914 echo "$ac_t""no" 1>&6 5917 echo "$ac_t""no" 1>&6
5915 for ac_hdr in kerberos/krb.h 5918 for ac_hdr in kerberos/krb.h
5916 do 5919 do
5917 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5920 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5918 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5921 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5919 echo "configure:5920: checking for $ac_hdr" >&5 5922 echo "configure:5923: checking for $ac_hdr" >&5
5920 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5923 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5921 echo $ac_n "(cached) $ac_c" 1>&6 5924 echo $ac_n "(cached) $ac_c" 1>&6
5922 else 5925 else
5923 cat > conftest.$ac_ext <<EOF 5926 cat > conftest.$ac_ext <<EOF
5924 #line 5925 "configure" 5927 #line 5928 "configure"
5925 #include "confdefs.h" 5928 #include "confdefs.h"
5926 #include <$ac_hdr> 5929 #include <$ac_hdr>
5927 EOF 5930 EOF
5928 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5929 { (eval echo configure:5930: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5932 { (eval echo configure:5933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5930 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5931 if test -z "$ac_err"; then 5934 if test -z "$ac_err"; then
5932 rm -rf conftest* 5935 rm -rf conftest*
5933 eval "ac_cv_header_$ac_safe=yes" 5936 eval "ac_cv_header_$ac_safe=yes"
5934 else 5937 else
5961 fi 5964 fi
5962 for ac_hdr in com_err.h 5965 for ac_hdr in com_err.h
5963 do 5966 do
5964 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5967 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5965 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5968 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5966 echo "configure:5967: checking for $ac_hdr" >&5 5969 echo "configure:5970: checking for $ac_hdr" >&5
5967 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5970 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5968 echo $ac_n "(cached) $ac_c" 1>&6 5971 echo $ac_n "(cached) $ac_c" 1>&6
5969 else 5972 else
5970 cat > conftest.$ac_ext <<EOF 5973 cat > conftest.$ac_ext <<EOF
5971 #line 5972 "configure" 5974 #line 5975 "configure"
5972 #include "confdefs.h" 5975 #include "confdefs.h"
5973 #include <$ac_hdr> 5976 #include <$ac_hdr>
5974 EOF 5977 EOF
5975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5976 { (eval echo configure:5977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5979 { (eval echo configure:5980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5978 if test -z "$ac_err"; then 5981 if test -z "$ac_err"; then
5979 rm -rf conftest* 5982 rm -rf conftest*
5980 eval "ac_cv_header_$ac_safe=yes" 5983 eval "ac_cv_header_$ac_safe=yes"
5981 else 5984 else
6002 fi 6005 fi
6003 6006
6004 # Solaris requires -lintl if you want strerror (which calls dgettext) 6007 # Solaris requires -lintl if you want strerror (which calls dgettext)
6005 # to return localized messages. 6008 # to return localized messages.
6006 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 6009 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6
6007 echo "configure:6008: checking for dgettext in -lintl" >&5 6010 echo "configure:6011: checking for dgettext in -lintl" >&5
6008 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` 6011 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'`
6009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 6012 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6010 echo $ac_n "(cached) $ac_c" 1>&6 6013 echo $ac_n "(cached) $ac_c" 1>&6
6011 else 6014 else
6012 ac_save_LIBS="$LIBS" 6015 ac_save_LIBS="$LIBS"
6013 LIBS="-lintl $LIBS" 6016 LIBS="-lintl $LIBS"
6014 cat > conftest.$ac_ext <<EOF 6017 cat > conftest.$ac_ext <<EOF
6015 #line 6016 "configure" 6018 #line 6019 "configure"
6016 #include "confdefs.h" 6019 #include "confdefs.h"
6017 /* Override any gcc2 internal prototype to avoid an error. */ 6020 /* Override any gcc2 internal prototype to avoid an error. */
6018 /* We use char because int might match the return type of a gcc2 6021 /* We use char because int might match the return type of a gcc2
6019 builtin and then its argument prototype would still apply. */ 6022 builtin and then its argument prototype would still apply. */
6020 char dgettext(); 6023 char dgettext();
6021 6024
6022 int main() { 6025 int main() {
6023 dgettext() 6026 dgettext()
6024 ; return 0; } 6027 ; return 0; }
6025 EOF 6028 EOF
6026 if { (eval echo configure:6027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6029 if { (eval echo configure:6030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6027 rm -rf conftest* 6030 rm -rf conftest*
6028 eval "ac_cv_lib_$ac_lib_var=yes" 6031 eval "ac_cv_lib_$ac_lib_var=yes"
6029 else 6032 else
6030 echo "configure: failed program was:" >&5 6033 echo "configure: failed program was:" >&5
6031 cat conftest.$ac_ext >&5 6034 cat conftest.$ac_ext >&5
6050 echo "$ac_t""no" 1>&6 6053 echo "$ac_t""no" 1>&6
6051 fi 6054 fi
6052 6055
6053 6056
6054 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 6057 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6
6055 echo "configure:6056: checking whether localtime caches TZ" >&5 6058 echo "configure:6059: checking whether localtime caches TZ" >&5
6056 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then 6059 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then
6057 echo $ac_n "(cached) $ac_c" 1>&6 6060 echo $ac_n "(cached) $ac_c" 1>&6
6058 else 6061 else
6059 if test x$ac_cv_func_tzset = xyes; then 6062 if test x$ac_cv_func_tzset = xyes; then
6060 if test "$cross_compiling" = yes; then 6063 if test "$cross_compiling" = yes; then
6061 # If we have tzset, assume the worst when cross-compiling. 6064 # If we have tzset, assume the worst when cross-compiling.
6062 emacs_cv_localtime_cache=yes 6065 emacs_cv_localtime_cache=yes
6063 else 6066 else
6064 cat > conftest.$ac_ext <<EOF 6067 cat > conftest.$ac_ext <<EOF
6065 #line 6066 "configure" 6068 #line 6069 "configure"
6066 #include "confdefs.h" 6069 #include "confdefs.h"
6067 #include <time.h> 6070 #include <time.h>
6068 extern char **environ; 6071 extern char **environ;
6069 unset_TZ () 6072 unset_TZ ()
6070 { 6073 {
6092 if (localtime (&now)->tm_hour != hour_unset) 6095 if (localtime (&now)->tm_hour != hour_unset)
6093 exit (1); 6096 exit (1);
6094 exit (0); 6097 exit (0);
6095 } 6098 }
6096 EOF 6099 EOF
6097 if { (eval echo configure:6098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6100 if { (eval echo configure:6101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6098 then 6101 then
6099 emacs_cv_localtime_cache=no 6102 emacs_cv_localtime_cache=no
6100 else 6103 else
6101 echo "configure: failed program was:" >&5 6104 echo "configure: failed program was:" >&5
6102 cat conftest.$ac_ext >&5 6105 cat conftest.$ac_ext >&5
6120 6123
6121 fi 6124 fi
6122 6125
6123 if test "x$HAVE_TIMEVAL" = xyes; then 6126 if test "x$HAVE_TIMEVAL" = xyes; then
6124 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 6127 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6
6125 echo "configure:6126: checking whether gettimeofday can accept two arguments" >&5 6128 echo "configure:6129: checking whether gettimeofday can accept two arguments" >&5
6126 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then 6129 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then
6127 echo $ac_n "(cached) $ac_c" 1>&6 6130 echo $ac_n "(cached) $ac_c" 1>&6
6128 else 6131 else
6129 cat > conftest.$ac_ext <<EOF 6132 cat > conftest.$ac_ext <<EOF
6130 #line 6131 "configure" 6133 #line 6134 "configure"
6131 #include "confdefs.h" 6134 #include "confdefs.h"
6132 6135
6133 #ifdef TIME_WITH_SYS_TIME 6136 #ifdef TIME_WITH_SYS_TIME
6134 #include <sys/time.h> 6137 #include <sys/time.h>
6135 #include <time.h> 6138 #include <time.h>
6147 struct timezone dummy; 6150 struct timezone dummy;
6148 gettimeofday (&time, &dummy); 6151 gettimeofday (&time, &dummy);
6149 6152
6150 ; return 0; } 6153 ; return 0; }
6151 EOF 6154 EOF
6152 if { (eval echo configure:6153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6155 if { (eval echo configure:6156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6153 rm -rf conftest* 6156 rm -rf conftest*
6154 emacs_cv_gettimeofday_two_arguments=yes 6157 emacs_cv_gettimeofday_two_arguments=yes
6155 else 6158 else
6156 echo "configure: failed program was:" >&5 6159 echo "configure: failed program was:" >&5
6157 cat conftest.$ac_ext >&5 6160 cat conftest.$ac_ext >&5
6170 fi 6173 fi
6171 fi 6174 fi
6172 6175
6173 ok_so_far=yes 6176 ok_so_far=yes
6174 echo $ac_n "checking for socket""... $ac_c" 1>&6 6177 echo $ac_n "checking for socket""... $ac_c" 1>&6
6175 echo "configure:6176: checking for socket" >&5 6178 echo "configure:6179: checking for socket" >&5
6176 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then 6179 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
6177 echo $ac_n "(cached) $ac_c" 1>&6 6180 echo $ac_n "(cached) $ac_c" 1>&6
6178 else 6181 else
6179 cat > conftest.$ac_ext <<EOF 6182 cat > conftest.$ac_ext <<EOF
6180 #line 6181 "configure" 6183 #line 6184 "configure"
6181 #include "confdefs.h" 6184 #include "confdefs.h"
6182 /* System header to define __stub macros and hopefully few prototypes, 6185 /* System header to define __stub macros and hopefully few prototypes,
6183 which can conflict with char socket(); below. */ 6186 which can conflict with char socket(); below. */
6184 #include <assert.h> 6187 #include <assert.h>
6185 /* Override any gcc2 internal prototype to avoid an error. */ 6188 /* Override any gcc2 internal prototype to avoid an error. */
6198 socket(); 6201 socket();
6199 #endif 6202 #endif
6200 6203
6201 ; return 0; } 6204 ; return 0; }
6202 EOF 6205 EOF
6203 if { (eval echo configure:6204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6206 if { (eval echo configure:6207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6204 rm -rf conftest* 6207 rm -rf conftest*
6205 eval "ac_cv_func_socket=yes" 6208 eval "ac_cv_func_socket=yes"
6206 else 6209 else
6207 echo "configure: failed program was:" >&5 6210 echo "configure: failed program was:" >&5
6208 cat conftest.$ac_ext >&5 6211 cat conftest.$ac_ext >&5
6221 fi 6224 fi
6222 6225
6223 if test $ok_so_far = yes; then 6226 if test $ok_so_far = yes; then
6224 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` 6227 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'`
6225 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 6228 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6
6226 echo "configure:6227: checking for netinet/in.h" >&5 6229 echo "configure:6230: checking for netinet/in.h" >&5
6227 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6230 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6228 echo $ac_n "(cached) $ac_c" 1>&6 6231 echo $ac_n "(cached) $ac_c" 1>&6
6229 else 6232 else
6230 cat > conftest.$ac_ext <<EOF 6233 cat > conftest.$ac_ext <<EOF
6231 #line 6232 "configure" 6234 #line 6235 "configure"
6232 #include "confdefs.h" 6235 #include "confdefs.h"
6233 #include <netinet/in.h> 6236 #include <netinet/in.h>
6234 EOF 6237 EOF
6235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6238 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6236 { (eval echo configure:6237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6239 { (eval echo configure:6240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6240 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6238 if test -z "$ac_err"; then 6241 if test -z "$ac_err"; then
6239 rm -rf conftest* 6242 rm -rf conftest*
6240 eval "ac_cv_header_$ac_safe=yes" 6243 eval "ac_cv_header_$ac_safe=yes"
6241 else 6244 else
6257 6260
6258 fi 6261 fi
6259 if test $ok_so_far = yes; then 6262 if test $ok_so_far = yes; then
6260 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` 6263 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'`
6261 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 6264 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6
6262 echo "configure:6263: checking for arpa/inet.h" >&5 6265 echo "configure:6266: checking for arpa/inet.h" >&5
6263 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6266 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6264 echo $ac_n "(cached) $ac_c" 1>&6 6267 echo $ac_n "(cached) $ac_c" 1>&6
6265 else 6268 else
6266 cat > conftest.$ac_ext <<EOF 6269 cat > conftest.$ac_ext <<EOF
6267 #line 6268 "configure" 6270 #line 6271 "configure"
6268 #include "confdefs.h" 6271 #include "confdefs.h"
6269 #include <arpa/inet.h> 6272 #include <arpa/inet.h>
6270 EOF 6273 EOF
6271 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6272 { (eval echo configure:6273: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6275 { (eval echo configure:6276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6273 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6274 if test -z "$ac_err"; then 6277 if test -z "$ac_err"; then
6275 rm -rf conftest* 6278 rm -rf conftest*
6276 eval "ac_cv_header_$ac_safe=yes" 6279 eval "ac_cv_header_$ac_safe=yes"
6277 else 6280 else
6305 EOF 6308 EOF
6306 6309
6307 fi 6310 fi
6308 6311
6309 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 6312 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6
6310 echo "configure:6311: checking whether system supports dynamic ptys" >&5 6313 echo "configure:6314: checking whether system supports dynamic ptys" >&5
6311 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 6314 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
6312 echo "$ac_t""yes" 1>&6 6315 echo "$ac_t""yes" 1>&6
6313 cat >> confdefs.h <<\EOF 6316 cat >> confdefs.h <<\EOF
6314 #define HAVE_DEV_PTMX 1 6317 #define HAVE_DEV_PTMX 1
6315 EOF 6318 EOF
6317 else 6320 else
6318 echo "$ac_t""no" 1>&6 6321 echo "$ac_t""no" 1>&6
6319 fi 6322 fi
6320 6323
6321 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 6324 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
6322 echo "configure:6323: checking for pid_t" >&5 6325 echo "configure:6326: checking for pid_t" >&5
6323 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 6326 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
6324 echo $ac_n "(cached) $ac_c" 1>&6 6327 echo $ac_n "(cached) $ac_c" 1>&6
6325 else 6328 else
6326 cat > conftest.$ac_ext <<EOF 6329 cat > conftest.$ac_ext <<EOF
6327 #line 6328 "configure" 6330 #line 6331 "configure"
6328 #include "confdefs.h" 6331 #include "confdefs.h"
6329 #include <sys/types.h> 6332 #include <sys/types.h>
6330 #if STDC_HEADERS 6333 #if STDC_HEADERS
6331 #include <stdlib.h> 6334 #include <stdlib.h>
6332 #include <stddef.h> 6335 #include <stddef.h>
6351 6354
6352 fi 6355 fi
6353 6356
6354 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 6357 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
6355 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 6358 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
6356 echo "configure:6357: checking for vfork.h" >&5 6359 echo "configure:6360: checking for vfork.h" >&5
6357 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6358 echo $ac_n "(cached) $ac_c" 1>&6 6361 echo $ac_n "(cached) $ac_c" 1>&6
6359 else 6362 else
6360 cat > conftest.$ac_ext <<EOF 6363 cat > conftest.$ac_ext <<EOF
6361 #line 6362 "configure" 6364 #line 6365 "configure"
6362 #include "confdefs.h" 6365 #include "confdefs.h"
6363 #include <vfork.h> 6366 #include <vfork.h>
6364 EOF 6367 EOF
6365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6366 { (eval echo configure:6367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6369 { (eval echo configure:6370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6368 if test -z "$ac_err"; then 6371 if test -z "$ac_err"; then
6369 rm -rf conftest* 6372 rm -rf conftest*
6370 eval "ac_cv_header_$ac_safe=yes" 6373 eval "ac_cv_header_$ac_safe=yes"
6371 else 6374 else
6386 else 6389 else
6387 echo "$ac_t""no" 1>&6 6390 echo "$ac_t""no" 1>&6
6388 fi 6391 fi
6389 6392
6390 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 6393 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
6391 echo "configure:6392: checking for working vfork" >&5 6394 echo "configure:6395: checking for working vfork" >&5
6392 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 6395 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
6393 echo $ac_n "(cached) $ac_c" 1>&6 6396 echo $ac_n "(cached) $ac_c" 1>&6
6394 else 6397 else
6395 if test "$cross_compiling" = yes; then 6398 if test "$cross_compiling" = yes; then
6396 echo $ac_n "checking for vfork""... $ac_c" 1>&6 6399 echo $ac_n "checking for vfork""... $ac_c" 1>&6
6397 echo "configure:6398: checking for vfork" >&5 6400 echo "configure:6401: checking for vfork" >&5
6398 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 6401 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
6399 echo $ac_n "(cached) $ac_c" 1>&6 6402 echo $ac_n "(cached) $ac_c" 1>&6
6400 else 6403 else
6401 cat > conftest.$ac_ext <<EOF 6404 cat > conftest.$ac_ext <<EOF
6402 #line 6403 "configure" 6405 #line 6406 "configure"
6403 #include "confdefs.h" 6406 #include "confdefs.h"
6404 /* System header to define __stub macros and hopefully few prototypes, 6407 /* System header to define __stub macros and hopefully few prototypes,
6405 which can conflict with char vfork(); below. */ 6408 which can conflict with char vfork(); below. */
6406 #include <assert.h> 6409 #include <assert.h>
6407 /* Override any gcc2 internal prototype to avoid an error. */ 6410 /* Override any gcc2 internal prototype to avoid an error. */
6420 vfork(); 6423 vfork();
6421 #endif 6424 #endif
6422 6425
6423 ; return 0; } 6426 ; return 0; }
6424 EOF 6427 EOF
6425 if { (eval echo configure:6426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6428 if { (eval echo configure:6429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6426 rm -rf conftest* 6429 rm -rf conftest*
6427 eval "ac_cv_func_vfork=yes" 6430 eval "ac_cv_func_vfork=yes"
6428 else 6431 else
6429 echo "configure: failed program was:" >&5 6432 echo "configure: failed program was:" >&5
6430 cat conftest.$ac_ext >&5 6433 cat conftest.$ac_ext >&5
6442 fi 6445 fi
6443 6446
6444 ac_cv_func_vfork_works=$ac_cv_func_vfork 6447 ac_cv_func_vfork_works=$ac_cv_func_vfork
6445 else 6448 else
6446 cat > conftest.$ac_ext <<EOF 6449 cat > conftest.$ac_ext <<EOF
6447 #line 6448 "configure" 6450 #line 6451 "configure"
6448 #include "confdefs.h" 6451 #include "confdefs.h"
6449 /* Thanks to Paul Eggert for this test. */ 6452 /* Thanks to Paul Eggert for this test. */
6450 #include <stdio.h> 6453 #include <stdio.h>
6451 #include <sys/types.h> 6454 #include <sys/types.h>
6452 #include <sys/stat.h> 6455 #include <sys/stat.h>
6537 || fstat(fileno(stdout), &st) != 0 6540 || fstat(fileno(stdout), &st) != 0
6538 ); 6541 );
6539 } 6542 }
6540 } 6543 }
6541 EOF 6544 EOF
6542 if { (eval echo configure:6543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 6545 if { (eval echo configure:6546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6543 then 6546 then
6544 ac_cv_func_vfork_works=yes 6547 ac_cv_func_vfork_works=yes
6545 else 6548 else
6546 echo "configure: failed program was:" >&5 6549 echo "configure: failed program was:" >&5
6547 cat conftest.$ac_ext >&5 6550 cat conftest.$ac_ext >&5