Mercurial > emacs
comparison configure @ 35196:eb8cfdc5cabf EMACS_PRETEST_21_0_95
*** empty log message ***
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 10 Jan 2001 12:50:09 +0000 |
parents | d39dd1c5b93f |
children | 054acbd5e9f7 |
comparison
equal
deleted
inserted
replaced
35195:2ed799be6e5b | 35196:eb8cfdc5cabf |
---|---|
4524 else | 4524 else |
4525 echo "$ac_t""no" 1>&6 | 4525 echo "$ac_t""no" 1>&6 |
4526 fi | 4526 fi |
4527 fi | 4527 fi |
4528 | 4528 |
4529 # Reportedly, some broken Solaris systems have XKBlib.h but are missing | |
4530 # header files included from there. | |
4531 echo $ac_n "checking for Xkb""... $ac_c" 1>&6 | |
4532 echo "configure:4533: checking for Xkb" >&5 | |
4533 cat > conftest.$ac_ext <<EOF | |
4534 #line 4535 "configure" | |
4535 #include "confdefs.h" | |
4536 #include <X11/Xlib.h> | |
4537 #include <X11/XKBlib.h> | |
4538 int main() { | |
4539 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); | |
4540 ; return 0; } | |
4541 EOF | |
4542 if { (eval echo configure:4543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4543 rm -rf conftest* | |
4544 emacs_xkb=yes | |
4545 else | |
4546 echo "configure: failed program was:" >&5 | |
4547 cat conftest.$ac_ext >&5 | |
4548 rm -rf conftest* | |
4549 emacs_xkb=no | |
4550 fi | |
4551 rm -f conftest* | |
4552 echo $ac_n "checking $emacs_xkb""... $ac_c" 1>&6 | |
4553 echo "configure:4554: checking $emacs_xkb" >&5 | |
4554 if test $emacs_xkb = yes; then | |
4555 cat >> confdefs.h <<\EOF | |
4556 #define HAVE_XKBGETKEYBOARD 1 | |
4557 EOF | |
4558 | |
4559 fi | |
4560 | |
4529 for ac_func in XrmSetDatabase XScreenResourceString \ | 4561 for ac_func in XrmSetDatabase XScreenResourceString \ |
4530 XScreenNumberOfScreen XSetWMProtocols | 4562 XScreenNumberOfScreen XSetWMProtocols |
4531 do | 4563 do |
4532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 4564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4533 echo "configure:4534: checking for $ac_func" >&5 | 4565 echo "configure:4566: checking for $ac_func" >&5 |
4534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 4566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4535 echo $ac_n "(cached) $ac_c" 1>&6 | 4567 echo $ac_n "(cached) $ac_c" 1>&6 |
4536 else | 4568 else |
4537 cat > conftest.$ac_ext <<EOF | 4569 cat > conftest.$ac_ext <<EOF |
4538 #line 4539 "configure" | 4570 #line 4571 "configure" |
4539 #include "confdefs.h" | 4571 #include "confdefs.h" |
4540 /* System header to define __stub macros and hopefully few prototypes, | 4572 /* System header to define __stub macros and hopefully few prototypes, |
4541 which can conflict with char $ac_func(); below. */ | 4573 which can conflict with char $ac_func(); below. */ |
4542 #include <assert.h> | 4574 #include <assert.h> |
4543 /* Override any gcc2 internal prototype to avoid an error. */ | 4575 /* Override any gcc2 internal prototype to avoid an error. */ |
4556 $ac_func(); | 4588 $ac_func(); |
4557 #endif | 4589 #endif |
4558 | 4590 |
4559 ; return 0; } | 4591 ; return 0; } |
4560 EOF | 4592 EOF |
4561 if { (eval echo configure:4562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4593 if { (eval echo configure:4594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4562 rm -rf conftest* | 4594 rm -rf conftest* |
4563 eval "ac_cv_func_$ac_func=yes" | 4595 eval "ac_cv_func_$ac_func=yes" |
4564 else | 4596 else |
4565 echo "configure: failed program was:" >&5 | 4597 echo "configure: failed program was:" >&5 |
4566 cat conftest.$ac_ext >&5 | 4598 cat conftest.$ac_ext >&5 |
4584 | 4616 |
4585 fi | 4617 fi |
4586 | 4618 |
4587 if test "${window_system}" = "x11"; then | 4619 if test "${window_system}" = "x11"; then |
4588 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 | 4620 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 |
4589 echo "configure:4590: checking X11 version 6" >&5 | 4621 echo "configure:4622: checking X11 version 6" >&5 |
4590 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then | 4622 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then |
4591 echo $ac_n "(cached) $ac_c" 1>&6 | 4623 echo $ac_n "(cached) $ac_c" 1>&6 |
4592 else | 4624 else |
4593 cat > conftest.$ac_ext <<EOF | 4625 cat > conftest.$ac_ext <<EOF |
4594 #line 4595 "configure" | 4626 #line 4627 "configure" |
4595 #include "confdefs.h" | 4627 #include "confdefs.h" |
4596 #include <X11/Xlib.h> | 4628 #include <X11/Xlib.h> |
4597 int main() { | 4629 int main() { |
4598 #if XlibSpecificationRelease < 6 | 4630 #if XlibSpecificationRelease < 6 |
4599 fail; | 4631 fail; |
4600 #endif | 4632 #endif |
4601 | 4633 |
4602 ; return 0; } | 4634 ; return 0; } |
4603 EOF | 4635 EOF |
4604 if { (eval echo configure:4605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4636 if { (eval echo configure:4637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4605 rm -rf conftest* | 4637 rm -rf conftest* |
4606 emacs_cv_x11_version_6=yes | 4638 emacs_cv_x11_version_6=yes |
4607 else | 4639 else |
4608 echo "configure: failed program was:" >&5 | 4640 echo "configure: failed program was:" >&5 |
4609 cat conftest.$ac_ext >&5 | 4641 cat conftest.$ac_ext >&5 |
4624 fi | 4656 fi |
4625 fi | 4657 fi |
4626 | 4658 |
4627 if test "${window_system}" = "x11"; then | 4659 if test "${window_system}" = "x11"; then |
4628 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 | 4660 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 |
4629 echo "configure:4630: checking X11 version 5" >&5 | 4661 echo "configure:4662: checking X11 version 5" >&5 |
4630 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then | 4662 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then |
4631 echo $ac_n "(cached) $ac_c" 1>&6 | 4663 echo $ac_n "(cached) $ac_c" 1>&6 |
4632 else | 4664 else |
4633 cat > conftest.$ac_ext <<EOF | 4665 cat > conftest.$ac_ext <<EOF |
4634 #line 4635 "configure" | 4666 #line 4667 "configure" |
4635 #include "confdefs.h" | 4667 #include "confdefs.h" |
4636 #include <X11/Xlib.h> | 4668 #include <X11/Xlib.h> |
4637 int main() { | 4669 int main() { |
4638 #if XlibSpecificationRelease < 5 | 4670 #if XlibSpecificationRelease < 5 |
4639 fail; | 4671 fail; |
4640 #endif | 4672 #endif |
4641 | 4673 |
4642 ; return 0; } | 4674 ; return 0; } |
4643 EOF | 4675 EOF |
4644 if { (eval echo configure:4645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4676 if { (eval echo configure:4677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4645 rm -rf conftest* | 4677 rm -rf conftest* |
4646 emacs_cv_x11_version_5=yes | 4678 emacs_cv_x11_version_5=yes |
4647 else | 4679 else |
4648 echo "configure: failed program was:" >&5 | 4680 echo "configure: failed program was:" >&5 |
4649 cat conftest.$ac_ext >&5 | 4681 cat conftest.$ac_ext >&5 |
4667 fi | 4699 fi |
4668 | 4700 |
4669 if test x"${USE_X_TOOLKIT}" = xmaybe; then | 4701 if test x"${USE_X_TOOLKIT}" = xmaybe; then |
4670 if test x"${HAVE_X11R5}" = xyes; then | 4702 if test x"${HAVE_X11R5}" = xyes; then |
4671 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 | 4703 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 |
4672 echo "configure:4673: checking X11 version 5 with Xaw" >&5 | 4704 echo "configure:4705: checking X11 version 5 with Xaw" >&5 |
4673 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then | 4705 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then |
4674 echo $ac_n "(cached) $ac_c" 1>&6 | 4706 echo $ac_n "(cached) $ac_c" 1>&6 |
4675 else | 4707 else |
4676 cat > conftest.$ac_ext <<EOF | 4708 cat > conftest.$ac_ext <<EOF |
4677 #line 4678 "configure" | 4709 #line 4710 "configure" |
4678 #include "confdefs.h" | 4710 #include "confdefs.h" |
4679 | 4711 |
4680 #include <X11/Intrinsic.h> | 4712 #include <X11/Intrinsic.h> |
4681 #include <X11/Xaw/Simple.h> | 4713 #include <X11/Xaw/Simple.h> |
4682 int main() { | 4714 int main() { |
4683 | 4715 |
4684 ; return 0; } | 4716 ; return 0; } |
4685 EOF | 4717 EOF |
4686 if { (eval echo configure:4687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4718 if { (eval echo configure:4719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4687 rm -rf conftest* | 4719 rm -rf conftest* |
4688 emacs_cv_x11_version_5_with_xaw=yes | 4720 emacs_cv_x11_version_5_with_xaw=yes |
4689 else | 4721 else |
4690 echo "configure: failed program was:" >&5 | 4722 echo "configure: failed program was:" >&5 |
4691 cat conftest.$ac_ext >&5 | 4723 cat conftest.$ac_ext >&5 |
4709 | 4741 |
4710 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | 4742 X_TOOLKIT_TYPE=$USE_X_TOOLKIT |
4711 | 4743 |
4712 if test "${USE_X_TOOLKIT}" != "none"; then | 4744 if test "${USE_X_TOOLKIT}" != "none"; then |
4713 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 | 4745 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 |
4714 echo "configure:4715: checking X11 toolkit version" >&5 | 4746 echo "configure:4747: checking X11 toolkit version" >&5 |
4715 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then | 4747 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then |
4716 echo $ac_n "(cached) $ac_c" 1>&6 | 4748 echo $ac_n "(cached) $ac_c" 1>&6 |
4717 else | 4749 else |
4718 cat > conftest.$ac_ext <<EOF | 4750 cat > conftest.$ac_ext <<EOF |
4719 #line 4720 "configure" | 4751 #line 4752 "configure" |
4720 #include "confdefs.h" | 4752 #include "confdefs.h" |
4721 #include <X11/Intrinsic.h> | 4753 #include <X11/Intrinsic.h> |
4722 int main() { | 4754 int main() { |
4723 #if XtSpecificationRelease < 6 | 4755 #if XtSpecificationRelease < 6 |
4724 fail; | 4756 fail; |
4725 #endif | 4757 #endif |
4726 | 4758 |
4727 ; return 0; } | 4759 ; return 0; } |
4728 EOF | 4760 EOF |
4729 if { (eval echo configure:4730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4761 if { (eval echo configure:4762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4730 rm -rf conftest* | 4762 rm -rf conftest* |
4731 emacs_cv_x11_toolkit_version_6=yes | 4763 emacs_cv_x11_toolkit_version_6=yes |
4732 else | 4764 else |
4733 echo "configure: failed program was:" >&5 | 4765 echo "configure: failed program was:" >&5 |
4734 cat conftest.$ac_ext >&5 | 4766 cat conftest.$ac_ext >&5 |
4754 LIBS="-lXt -lSM -lICE $LIBS" | 4786 LIBS="-lXt -lSM -lICE $LIBS" |
4755 else | 4787 else |
4756 LIBS="-lXt $LIBS" | 4788 LIBS="-lXt $LIBS" |
4757 fi | 4789 fi |
4758 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 | 4790 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 |
4759 echo "configure:4760: checking for XmuConvertStandardSelection in -lXmu" >&5 | 4791 echo "configure:4792: checking for XmuConvertStandardSelection in -lXmu" >&5 |
4760 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` | 4792 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` |
4761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4793 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4762 echo $ac_n "(cached) $ac_c" 1>&6 | 4794 echo $ac_n "(cached) $ac_c" 1>&6 |
4763 else | 4795 else |
4764 ac_save_LIBS="$LIBS" | 4796 ac_save_LIBS="$LIBS" |
4765 LIBS="-lXmu $LIBS" | 4797 LIBS="-lXmu $LIBS" |
4766 cat > conftest.$ac_ext <<EOF | 4798 cat > conftest.$ac_ext <<EOF |
4767 #line 4768 "configure" | 4799 #line 4800 "configure" |
4768 #include "confdefs.h" | 4800 #include "confdefs.h" |
4769 /* Override any gcc2 internal prototype to avoid an error. */ | 4801 /* Override any gcc2 internal prototype to avoid an error. */ |
4770 /* We use char because int might match the return type of a gcc2 | 4802 /* We use char because int might match the return type of a gcc2 |
4771 builtin and then its argument prototype would still apply. */ | 4803 builtin and then its argument prototype would still apply. */ |
4772 char XmuConvertStandardSelection(); | 4804 char XmuConvertStandardSelection(); |
4773 | 4805 |
4774 int main() { | 4806 int main() { |
4775 XmuConvertStandardSelection() | 4807 XmuConvertStandardSelection() |
4776 ; return 0; } | 4808 ; return 0; } |
4777 EOF | 4809 EOF |
4778 if { (eval echo configure:4779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4810 if { (eval echo configure:4811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4779 rm -rf conftest* | 4811 rm -rf conftest* |
4780 eval "ac_cv_lib_$ac_lib_var=yes" | 4812 eval "ac_cv_lib_$ac_lib_var=yes" |
4781 else | 4813 else |
4782 echo "configure: failed program was:" >&5 | 4814 echo "configure: failed program was:" >&5 |
4783 cat conftest.$ac_ext >&5 | 4815 cat conftest.$ac_ext >&5 |
4805 LIBS="$OLDLIBS" | 4837 LIBS="$OLDLIBS" |
4806 fi | 4838 fi |
4807 | 4839 |
4808 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | 4840 if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
4809 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 | 4841 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 |
4810 echo "configure:4811: checking for Motif version 2.1" >&5 | 4842 echo "configure:4843: checking for Motif version 2.1" >&5 |
4811 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then | 4843 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then |
4812 echo $ac_n "(cached) $ac_c" 1>&6 | 4844 echo $ac_n "(cached) $ac_c" 1>&6 |
4813 else | 4845 else |
4814 cat > conftest.$ac_ext <<EOF | 4846 cat > conftest.$ac_ext <<EOF |
4815 #line 4816 "configure" | 4847 #line 4848 "configure" |
4816 #include "confdefs.h" | 4848 #include "confdefs.h" |
4817 #include <Xm/Xm.h> | 4849 #include <Xm/Xm.h> |
4818 int main() { | 4850 int main() { |
4819 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | 4851 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
4820 int x = 5; | 4852 int x = 5; |
4821 #else | 4853 #else |
4822 Motif version prior to 2.1. | 4854 Motif version prior to 2.1. |
4823 #endif | 4855 #endif |
4824 ; return 0; } | 4856 ; return 0; } |
4825 EOF | 4857 EOF |
4826 if { (eval echo configure:4827: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4858 if { (eval echo configure:4859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4827 rm -rf conftest* | 4859 rm -rf conftest* |
4828 emacs_cv_motif_version_2_1=yes | 4860 emacs_cv_motif_version_2_1=yes |
4829 else | 4861 else |
4830 echo "configure: failed program was:" >&5 | 4862 echo "configure: failed program was:" >&5 |
4831 cat conftest.$ac_ext >&5 | 4863 cat conftest.$ac_ext >&5 |
4842 cat >> confdefs.h <<\EOF | 4874 cat >> confdefs.h <<\EOF |
4843 #define HAVE_MOTIF_2_1 1 | 4875 #define HAVE_MOTIF_2_1 1 |
4844 EOF | 4876 EOF |
4845 | 4877 |
4846 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 | 4878 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 |
4847 echo "configure:4848: checking for XpCreateContext in -lXp" >&5 | 4879 echo "configure:4880: checking for XpCreateContext in -lXp" >&5 |
4848 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` | 4880 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` |
4849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4850 echo $ac_n "(cached) $ac_c" 1>&6 | 4882 echo $ac_n "(cached) $ac_c" 1>&6 |
4851 else | 4883 else |
4852 ac_save_LIBS="$LIBS" | 4884 ac_save_LIBS="$LIBS" |
4853 LIBS="-lXp -lXext $LIBS" | 4885 LIBS="-lXp -lXext $LIBS" |
4854 cat > conftest.$ac_ext <<EOF | 4886 cat > conftest.$ac_ext <<EOF |
4855 #line 4856 "configure" | 4887 #line 4888 "configure" |
4856 #include "confdefs.h" | 4888 #include "confdefs.h" |
4857 /* Override any gcc2 internal prototype to avoid an error. */ | 4889 /* Override any gcc2 internal prototype to avoid an error. */ |
4858 /* We use char because int might match the return type of a gcc2 | 4890 /* We use char because int might match the return type of a gcc2 |
4859 builtin and then its argument prototype would still apply. */ | 4891 builtin and then its argument prototype would still apply. */ |
4860 char XpCreateContext(); | 4892 char XpCreateContext(); |
4861 | 4893 |
4862 int main() { | 4894 int main() { |
4863 XpCreateContext() | 4895 XpCreateContext() |
4864 ; return 0; } | 4896 ; return 0; } |
4865 EOF | 4897 EOF |
4866 if { (eval echo configure:4867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4898 if { (eval echo configure:4899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4867 rm -rf conftest* | 4899 rm -rf conftest* |
4868 eval "ac_cv_lib_$ac_lib_var=yes" | 4900 eval "ac_cv_lib_$ac_lib_var=yes" |
4869 else | 4901 else |
4870 echo "configure: failed program was:" >&5 | 4902 echo "configure: failed program was:" >&5 |
4871 cat conftest.$ac_ext >&5 | 4903 cat conftest.$ac_ext >&5 |
4898 if test "${USE_X_TOOLKIT}" != "none"; then | 4930 if test "${USE_X_TOOLKIT}" != "none"; then |
4899 old_c_flags="${CFLAGS}" | 4931 old_c_flags="${CFLAGS}" |
4900 CFLAGS="${LD_SWITCH_X_SITE}" | 4932 CFLAGS="${LD_SWITCH_X_SITE}" |
4901 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` | 4933 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` |
4902 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 | 4934 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 |
4903 echo "configure:4904: checking for X11/Xaw3d/Scrollbar.h" >&5 | 4935 echo "configure:4936: checking for X11/Xaw3d/Scrollbar.h" >&5 |
4904 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4936 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4905 echo $ac_n "(cached) $ac_c" 1>&6 | 4937 echo $ac_n "(cached) $ac_c" 1>&6 |
4906 else | 4938 else |
4907 cat > conftest.$ac_ext <<EOF | 4939 cat > conftest.$ac_ext <<EOF |
4908 #line 4909 "configure" | 4940 #line 4941 "configure" |
4909 #include "confdefs.h" | 4941 #include "confdefs.h" |
4910 #include <X11/Xaw3d/Scrollbar.h> | 4942 #include <X11/Xaw3d/Scrollbar.h> |
4911 EOF | 4943 EOF |
4912 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4913 { (eval echo configure:4914: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4945 { (eval echo configure:4946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4914 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4915 if test -z "$ac_err"; then | 4947 if test -z "$ac_err"; then |
4916 rm -rf conftest* | 4948 rm -rf conftest* |
4917 eval "ac_cv_header_$ac_safe=yes" | 4949 eval "ac_cv_header_$ac_safe=yes" |
4918 else | 4950 else |
4925 rm -f conftest* | 4957 rm -f conftest* |
4926 fi | 4958 fi |
4927 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 4959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4928 echo "$ac_t""yes" 1>&6 | 4960 echo "$ac_t""yes" 1>&6 |
4929 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 | 4961 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 |
4930 echo "configure:4931: checking for XawScrollbarSetThumb in -lXaw3d" >&5 | 4962 echo "configure:4963: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
4931 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` | 4963 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` |
4932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4964 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4933 echo $ac_n "(cached) $ac_c" 1>&6 | 4965 echo $ac_n "(cached) $ac_c" 1>&6 |
4934 else | 4966 else |
4935 ac_save_LIBS="$LIBS" | 4967 ac_save_LIBS="$LIBS" |
4936 LIBS="-lXaw3d -lX11 $LIBS" | 4968 LIBS="-lXaw3d -lX11 $LIBS" |
4937 cat > conftest.$ac_ext <<EOF | 4969 cat > conftest.$ac_ext <<EOF |
4938 #line 4939 "configure" | 4970 #line 4971 "configure" |
4939 #include "confdefs.h" | 4971 #include "confdefs.h" |
4940 /* Override any gcc2 internal prototype to avoid an error. */ | 4972 /* Override any gcc2 internal prototype to avoid an error. */ |
4941 /* We use char because int might match the return type of a gcc2 | 4973 /* We use char because int might match the return type of a gcc2 |
4942 builtin and then its argument prototype would still apply. */ | 4974 builtin and then its argument prototype would still apply. */ |
4943 char XawScrollbarSetThumb(); | 4975 char XawScrollbarSetThumb(); |
4944 | 4976 |
4945 int main() { | 4977 int main() { |
4946 XawScrollbarSetThumb() | 4978 XawScrollbarSetThumb() |
4947 ; return 0; } | 4979 ; return 0; } |
4948 EOF | 4980 EOF |
4949 if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4981 if { (eval echo configure:4982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4950 rm -rf conftest* | 4982 rm -rf conftest* |
4951 eval "ac_cv_lib_$ac_lib_var=yes" | 4983 eval "ac_cv_lib_$ac_lib_var=yes" |
4952 else | 4984 else |
4953 echo "configure: failed program was:" >&5 | 4985 echo "configure: failed program was:" >&5 |
4954 cat conftest.$ac_ext >&5 | 4986 cat conftest.$ac_ext >&5 |
5016 if test "${with_xpm}" != "no"; then | 5048 if test "${with_xpm}" != "no"; then |
5017 old_c_flags="${CFLAGS}" | 5049 old_c_flags="${CFLAGS}" |
5018 CFLAGS="${LD_SWITCH_X_SITE}" | 5050 CFLAGS="${LD_SWITCH_X_SITE}" |
5019 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` | 5051 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` |
5020 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 | 5052 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 |
5021 echo "configure:5022: checking for X11/xpm.h" >&5 | 5053 echo "configure:5054: checking for X11/xpm.h" >&5 |
5022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5054 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5023 echo $ac_n "(cached) $ac_c" 1>&6 | 5055 echo $ac_n "(cached) $ac_c" 1>&6 |
5024 else | 5056 else |
5025 cat > conftest.$ac_ext <<EOF | 5057 cat > conftest.$ac_ext <<EOF |
5026 #line 5027 "configure" | 5058 #line 5059 "configure" |
5027 #include "confdefs.h" | 5059 #include "confdefs.h" |
5028 #include <X11/xpm.h> | 5060 #include <X11/xpm.h> |
5029 EOF | 5061 EOF |
5030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5031 { (eval echo configure:5032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5063 { (eval echo configure:5064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5033 if test -z "$ac_err"; then | 5065 if test -z "$ac_err"; then |
5034 rm -rf conftest* | 5066 rm -rf conftest* |
5035 eval "ac_cv_header_$ac_safe=yes" | 5067 eval "ac_cv_header_$ac_safe=yes" |
5036 else | 5068 else |
5043 rm -f conftest* | 5075 rm -f conftest* |
5044 fi | 5076 fi |
5045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5046 echo "$ac_t""yes" 1>&6 | 5078 echo "$ac_t""yes" 1>&6 |
5047 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 | 5079 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 |
5048 echo "configure:5049: checking for XpmReadFileToPixmap in -lXpm" >&5 | 5080 echo "configure:5081: checking for XpmReadFileToPixmap in -lXpm" >&5 |
5049 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` | 5081 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` |
5050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5082 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5051 echo $ac_n "(cached) $ac_c" 1>&6 | 5083 echo $ac_n "(cached) $ac_c" 1>&6 |
5052 else | 5084 else |
5053 ac_save_LIBS="$LIBS" | 5085 ac_save_LIBS="$LIBS" |
5054 LIBS="-lXpm -lX11 $LIBS" | 5086 LIBS="-lXpm -lX11 $LIBS" |
5055 cat > conftest.$ac_ext <<EOF | 5087 cat > conftest.$ac_ext <<EOF |
5056 #line 5057 "configure" | 5088 #line 5089 "configure" |
5057 #include "confdefs.h" | 5089 #include "confdefs.h" |
5058 /* Override any gcc2 internal prototype to avoid an error. */ | 5090 /* Override any gcc2 internal prototype to avoid an error. */ |
5059 /* We use char because int might match the return type of a gcc2 | 5091 /* We use char because int might match the return type of a gcc2 |
5060 builtin and then its argument prototype would still apply. */ | 5092 builtin and then its argument prototype would still apply. */ |
5061 char XpmReadFileToPixmap(); | 5093 char XpmReadFileToPixmap(); |
5062 | 5094 |
5063 int main() { | 5095 int main() { |
5064 XpmReadFileToPixmap() | 5096 XpmReadFileToPixmap() |
5065 ; return 0; } | 5097 ; return 0; } |
5066 EOF | 5098 EOF |
5067 if { (eval echo configure:5068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5099 if { (eval echo configure:5100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5068 rm -rf conftest* | 5100 rm -rf conftest* |
5069 eval "ac_cv_lib_$ac_lib_var=yes" | 5101 eval "ac_cv_lib_$ac_lib_var=yes" |
5070 else | 5102 else |
5071 echo "configure: failed program was:" >&5 | 5103 echo "configure: failed program was:" >&5 |
5072 cat conftest.$ac_ext >&5 | 5104 cat conftest.$ac_ext >&5 |
5088 echo "$ac_t""no" 1>&6 | 5120 echo "$ac_t""no" 1>&6 |
5089 fi | 5121 fi |
5090 | 5122 |
5091 if test "${HAVE_XPM}" = "yes"; then | 5123 if test "${HAVE_XPM}" = "yes"; then |
5092 echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6 | 5124 echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6 |
5093 echo "configure:5094: checking for XpmReturnAllocPixels preprocessor define" >&5 | 5125 echo "configure:5126: checking for XpmReturnAllocPixels preprocessor define" >&5 |
5094 cat > conftest.$ac_ext <<EOF | 5126 cat > conftest.$ac_ext <<EOF |
5095 #line 5096 "configure" | 5127 #line 5128 "configure" |
5096 #include "confdefs.h" | 5128 #include "confdefs.h" |
5097 #include "X11/xpm.h" | 5129 #include "X11/xpm.h" |
5098 #ifndef XpmReturnAllocPixels | 5130 #ifndef XpmReturnAllocPixels |
5099 no_return_alloc_pixels | 5131 no_return_alloc_pixels |
5100 #endif | 5132 #endif |
5133 if test "${with_jpeg}" != "no"; then | 5165 if test "${with_jpeg}" != "no"; then |
5134 old_c_flags="${CFLAGS}" | 5166 old_c_flags="${CFLAGS}" |
5135 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 5167 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
5136 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` | 5168 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` |
5137 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 | 5169 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 |
5138 echo "configure:5139: checking for jerror.h" >&5 | 5170 echo "configure:5171: checking for jerror.h" >&5 |
5139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5171 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5140 echo $ac_n "(cached) $ac_c" 1>&6 | 5172 echo $ac_n "(cached) $ac_c" 1>&6 |
5141 else | 5173 else |
5142 cat > conftest.$ac_ext <<EOF | 5174 cat > conftest.$ac_ext <<EOF |
5143 #line 5144 "configure" | 5175 #line 5176 "configure" |
5144 #include "confdefs.h" | 5176 #include "confdefs.h" |
5145 #include <jerror.h> | 5177 #include <jerror.h> |
5146 EOF | 5178 EOF |
5147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5148 { (eval echo configure:5149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5180 { (eval echo configure:5181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5150 if test -z "$ac_err"; then | 5182 if test -z "$ac_err"; then |
5151 rm -rf conftest* | 5183 rm -rf conftest* |
5152 eval "ac_cv_header_$ac_safe=yes" | 5184 eval "ac_cv_header_$ac_safe=yes" |
5153 else | 5185 else |
5160 rm -f conftest* | 5192 rm -f conftest* |
5161 fi | 5193 fi |
5162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5163 echo "$ac_t""yes" 1>&6 | 5195 echo "$ac_t""yes" 1>&6 |
5164 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 | 5196 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 |
5165 echo "configure:5166: checking for jpeg_destroy_compress in -ljpeg" >&5 | 5197 echo "configure:5198: checking for jpeg_destroy_compress in -ljpeg" >&5 |
5166 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` | 5198 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` |
5167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5199 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5168 echo $ac_n "(cached) $ac_c" 1>&6 | 5200 echo $ac_n "(cached) $ac_c" 1>&6 |
5169 else | 5201 else |
5170 ac_save_LIBS="$LIBS" | 5202 ac_save_LIBS="$LIBS" |
5171 LIBS="-ljpeg -lX11 $LIBS" | 5203 LIBS="-ljpeg -lX11 $LIBS" |
5172 cat > conftest.$ac_ext <<EOF | 5204 cat > conftest.$ac_ext <<EOF |
5173 #line 5174 "configure" | 5205 #line 5206 "configure" |
5174 #include "confdefs.h" | 5206 #include "confdefs.h" |
5175 /* Override any gcc2 internal prototype to avoid an error. */ | 5207 /* Override any gcc2 internal prototype to avoid an error. */ |
5176 /* We use char because int might match the return type of a gcc2 | 5208 /* We use char because int might match the return type of a gcc2 |
5177 builtin and then its argument prototype would still apply. */ | 5209 builtin and then its argument prototype would still apply. */ |
5178 char jpeg_destroy_compress(); | 5210 char jpeg_destroy_compress(); |
5179 | 5211 |
5180 int main() { | 5212 int main() { |
5181 jpeg_destroy_compress() | 5213 jpeg_destroy_compress() |
5182 ; return 0; } | 5214 ; return 0; } |
5183 EOF | 5215 EOF |
5184 if { (eval echo configure:5185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5216 if { (eval echo configure:5217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5185 rm -rf conftest* | 5217 rm -rf conftest* |
5186 eval "ac_cv_lib_$ac_lib_var=yes" | 5218 eval "ac_cv_lib_$ac_lib_var=yes" |
5187 else | 5219 else |
5188 echo "configure: failed program was:" >&5 | 5220 echo "configure: failed program was:" >&5 |
5189 cat conftest.$ac_ext >&5 | 5221 cat conftest.$ac_ext >&5 |
5222 if test "${with_png}" != "no"; then | 5254 if test "${with_png}" != "no"; then |
5223 old_c_flags="${CFLAGS}" | 5255 old_c_flags="${CFLAGS}" |
5224 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 5256 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
5225 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | 5257 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
5226 echo $ac_n "checking for png.h""... $ac_c" 1>&6 | 5258 echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
5227 echo "configure:5228: checking for png.h" >&5 | 5259 echo "configure:5260: checking for png.h" >&5 |
5228 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5260 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5229 echo $ac_n "(cached) $ac_c" 1>&6 | 5261 echo $ac_n "(cached) $ac_c" 1>&6 |
5230 else | 5262 else |
5231 cat > conftest.$ac_ext <<EOF | 5263 cat > conftest.$ac_ext <<EOF |
5232 #line 5233 "configure" | 5264 #line 5265 "configure" |
5233 #include "confdefs.h" | 5265 #include "confdefs.h" |
5234 #include <png.h> | 5266 #include <png.h> |
5235 EOF | 5267 EOF |
5236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5237 { (eval echo configure:5238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5269 { (eval echo configure:5270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5239 if test -z "$ac_err"; then | 5271 if test -z "$ac_err"; then |
5240 rm -rf conftest* | 5272 rm -rf conftest* |
5241 eval "ac_cv_header_$ac_safe=yes" | 5273 eval "ac_cv_header_$ac_safe=yes" |
5242 else | 5274 else |
5249 rm -f conftest* | 5281 rm -f conftest* |
5250 fi | 5282 fi |
5251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5252 echo "$ac_t""yes" 1>&6 | 5284 echo "$ac_t""yes" 1>&6 |
5253 echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6 | 5285 echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6 |
5254 echo "configure:5255: checking for png_get_channels in -lpng" >&5 | 5286 echo "configure:5287: checking for png_get_channels in -lpng" >&5 |
5255 ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'` | 5287 ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'` |
5256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5257 echo $ac_n "(cached) $ac_c" 1>&6 | 5289 echo $ac_n "(cached) $ac_c" 1>&6 |
5258 else | 5290 else |
5259 ac_save_LIBS="$LIBS" | 5291 ac_save_LIBS="$LIBS" |
5260 LIBS="-lpng -lX11 -lz -lm $LIBS" | 5292 LIBS="-lpng -lX11 -lz -lm $LIBS" |
5261 cat > conftest.$ac_ext <<EOF | 5293 cat > conftest.$ac_ext <<EOF |
5262 #line 5263 "configure" | 5294 #line 5295 "configure" |
5263 #include "confdefs.h" | 5295 #include "confdefs.h" |
5264 /* Override any gcc2 internal prototype to avoid an error. */ | 5296 /* Override any gcc2 internal prototype to avoid an error. */ |
5265 /* We use char because int might match the return type of a gcc2 | 5297 /* We use char because int might match the return type of a gcc2 |
5266 builtin and then its argument prototype would still apply. */ | 5298 builtin and then its argument prototype would still apply. */ |
5267 char png_get_channels(); | 5299 char png_get_channels(); |
5268 | 5300 |
5269 int main() { | 5301 int main() { |
5270 png_get_channels() | 5302 png_get_channels() |
5271 ; return 0; } | 5303 ; return 0; } |
5272 EOF | 5304 EOF |
5273 if { (eval echo configure:5274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5305 if { (eval echo configure:5306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5274 rm -rf conftest* | 5306 rm -rf conftest* |
5275 eval "ac_cv_lib_$ac_lib_var=yes" | 5307 eval "ac_cv_lib_$ac_lib_var=yes" |
5276 else | 5308 else |
5277 echo "configure: failed program was:" >&5 | 5309 echo "configure: failed program was:" >&5 |
5278 cat conftest.$ac_ext >&5 | 5310 cat conftest.$ac_ext >&5 |
5311 if test "${with_tiff}" != "no"; then | 5343 if test "${with_tiff}" != "no"; then |
5312 old_c_flags="${CFLAGS}" | 5344 old_c_flags="${CFLAGS}" |
5313 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 5345 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
5314 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | 5346 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
5315 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | 5347 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 |
5316 echo "configure:5317: checking for tiffio.h" >&5 | 5348 echo "configure:5349: checking for tiffio.h" >&5 |
5317 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5318 echo $ac_n "(cached) $ac_c" 1>&6 | 5350 echo $ac_n "(cached) $ac_c" 1>&6 |
5319 else | 5351 else |
5320 cat > conftest.$ac_ext <<EOF | 5352 cat > conftest.$ac_ext <<EOF |
5321 #line 5322 "configure" | 5353 #line 5354 "configure" |
5322 #include "confdefs.h" | 5354 #include "confdefs.h" |
5323 #include <tiffio.h> | 5355 #include <tiffio.h> |
5324 EOF | 5356 EOF |
5325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5326 { (eval echo configure:5327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5358 { (eval echo configure:5359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5328 if test -z "$ac_err"; then | 5360 if test -z "$ac_err"; then |
5329 rm -rf conftest* | 5361 rm -rf conftest* |
5330 eval "ac_cv_header_$ac_safe=yes" | 5362 eval "ac_cv_header_$ac_safe=yes" |
5331 else | 5363 else |
5341 echo "$ac_t""yes" 1>&6 | 5373 echo "$ac_t""yes" 1>&6 |
5342 tifflibs="-lX11 -lz -lm" | 5374 tifflibs="-lX11 -lz -lm" |
5343 # At least one tiff package requires the jpeg library. | 5375 # At least one tiff package requires the jpeg library. |
5344 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | 5376 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
5345 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 | 5377 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 |
5346 echo "configure:5347: checking for TIFFGetVersion in -ltiff" >&5 | 5378 echo "configure:5379: checking for TIFFGetVersion in -ltiff" >&5 |
5347 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` | 5379 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` |
5348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5349 echo $ac_n "(cached) $ac_c" 1>&6 | 5381 echo $ac_n "(cached) $ac_c" 1>&6 |
5350 else | 5382 else |
5351 ac_save_LIBS="$LIBS" | 5383 ac_save_LIBS="$LIBS" |
5352 LIBS="-ltiff $tifflibs $LIBS" | 5384 LIBS="-ltiff $tifflibs $LIBS" |
5353 cat > conftest.$ac_ext <<EOF | 5385 cat > conftest.$ac_ext <<EOF |
5354 #line 5355 "configure" | 5386 #line 5387 "configure" |
5355 #include "confdefs.h" | 5387 #include "confdefs.h" |
5356 /* Override any gcc2 internal prototype to avoid an error. */ | 5388 /* Override any gcc2 internal prototype to avoid an error. */ |
5357 /* We use char because int might match the return type of a gcc2 | 5389 /* We use char because int might match the return type of a gcc2 |
5358 builtin and then its argument prototype would still apply. */ | 5390 builtin and then its argument prototype would still apply. */ |
5359 char TIFFGetVersion(); | 5391 char TIFFGetVersion(); |
5360 | 5392 |
5361 int main() { | 5393 int main() { |
5362 TIFFGetVersion() | 5394 TIFFGetVersion() |
5363 ; return 0; } | 5395 ; return 0; } |
5364 EOF | 5396 EOF |
5365 if { (eval echo configure:5366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5397 if { (eval echo configure:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5366 rm -rf conftest* | 5398 rm -rf conftest* |
5367 eval "ac_cv_lib_$ac_lib_var=yes" | 5399 eval "ac_cv_lib_$ac_lib_var=yes" |
5368 else | 5400 else |
5369 echo "configure: failed program was:" >&5 | 5401 echo "configure: failed program was:" >&5 |
5370 cat conftest.$ac_ext >&5 | 5402 cat conftest.$ac_ext >&5 |
5403 if test "${with_gif}" != "no"; then | 5435 if test "${with_gif}" != "no"; then |
5404 old_c_flags="${CFLAGS}" | 5436 old_c_flags="${CFLAGS}" |
5405 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | 5437 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" |
5406 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` | 5438 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` |
5407 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 | 5439 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 |
5408 echo "configure:5409: checking for gif_lib.h" >&5 | 5440 echo "configure:5441: checking for gif_lib.h" >&5 |
5409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5441 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5410 echo $ac_n "(cached) $ac_c" 1>&6 | 5442 echo $ac_n "(cached) $ac_c" 1>&6 |
5411 else | 5443 else |
5412 cat > conftest.$ac_ext <<EOF | 5444 cat > conftest.$ac_ext <<EOF |
5413 #line 5414 "configure" | 5445 #line 5446 "configure" |
5414 #include "confdefs.h" | 5446 #include "confdefs.h" |
5415 #include <gif_lib.h> | 5447 #include <gif_lib.h> |
5416 EOF | 5448 EOF |
5417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5418 { (eval echo configure:5419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5450 { (eval echo configure:5451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5420 if test -z "$ac_err"; then | 5452 if test -z "$ac_err"; then |
5421 rm -rf conftest* | 5453 rm -rf conftest* |
5422 eval "ac_cv_header_$ac_safe=yes" | 5454 eval "ac_cv_header_$ac_safe=yes" |
5423 else | 5455 else |
5430 rm -f conftest* | 5462 rm -f conftest* |
5431 fi | 5463 fi |
5432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5433 echo "$ac_t""yes" 1>&6 | 5465 echo "$ac_t""yes" 1>&6 |
5434 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 | 5466 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 |
5435 echo "configure:5436: checking for DGifOpen in -lungif" >&5 | 5467 echo "configure:5468: checking for DGifOpen in -lungif" >&5 |
5436 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` | 5468 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` |
5437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5469 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5438 echo $ac_n "(cached) $ac_c" 1>&6 | 5470 echo $ac_n "(cached) $ac_c" 1>&6 |
5439 else | 5471 else |
5440 ac_save_LIBS="$LIBS" | 5472 ac_save_LIBS="$LIBS" |
5441 LIBS="-lungif -lX11 $LIBS" | 5473 LIBS="-lungif -lX11 $LIBS" |
5442 cat > conftest.$ac_ext <<EOF | 5474 cat > conftest.$ac_ext <<EOF |
5443 #line 5444 "configure" | 5475 #line 5476 "configure" |
5444 #include "confdefs.h" | 5476 #include "confdefs.h" |
5445 /* Override any gcc2 internal prototype to avoid an error. */ | 5477 /* Override any gcc2 internal prototype to avoid an error. */ |
5446 /* We use char because int might match the return type of a gcc2 | 5478 /* We use char because int might match the return type of a gcc2 |
5447 builtin and then its argument prototype would still apply. */ | 5479 builtin and then its argument prototype would still apply. */ |
5448 char DGifOpen(); | 5480 char DGifOpen(); |
5449 | 5481 |
5450 int main() { | 5482 int main() { |
5451 DGifOpen() | 5483 DGifOpen() |
5452 ; return 0; } | 5484 ; return 0; } |
5453 EOF | 5485 EOF |
5454 if { (eval echo configure:5455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5486 if { (eval echo configure:5487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5455 rm -rf conftest* | 5487 rm -rf conftest* |
5456 eval "ac_cv_lib_$ac_lib_var=yes" | 5488 eval "ac_cv_lib_$ac_lib_var=yes" |
5457 else | 5489 else |
5458 echo "configure: failed program was:" >&5 | 5490 echo "configure: failed program was:" >&5 |
5459 cat conftest.$ac_ext >&5 | 5491 cat conftest.$ac_ext >&5 |
5486 fi | 5518 fi |
5487 fi | 5519 fi |
5488 | 5520 |
5489 # If netdb.h doesn't declare h_errno, we must declare it by hand. | 5521 # If netdb.h doesn't declare h_errno, we must declare it by hand. |
5490 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | 5522 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 |
5491 echo "configure:5492: checking whether netdb declares h_errno" >&5 | 5523 echo "configure:5524: checking whether netdb declares h_errno" >&5 |
5492 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then | 5524 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then |
5493 echo $ac_n "(cached) $ac_c" 1>&6 | 5525 echo $ac_n "(cached) $ac_c" 1>&6 |
5494 else | 5526 else |
5495 cat > conftest.$ac_ext <<EOF | 5527 cat > conftest.$ac_ext <<EOF |
5496 #line 5497 "configure" | 5528 #line 5529 "configure" |
5497 #include "confdefs.h" | 5529 #include "confdefs.h" |
5498 #include <netdb.h> | 5530 #include <netdb.h> |
5499 int main() { | 5531 int main() { |
5500 return h_errno; | 5532 return h_errno; |
5501 ; return 0; } | 5533 ; return 0; } |
5502 EOF | 5534 EOF |
5503 if { (eval echo configure:5504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5535 if { (eval echo configure:5536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5504 rm -rf conftest* | 5536 rm -rf conftest* |
5505 emacs_cv_netdb_declares_h_errno=yes | 5537 emacs_cv_netdb_declares_h_errno=yes |
5506 else | 5538 else |
5507 echo "configure: failed program was:" >&5 | 5539 echo "configure: failed program was:" >&5 |
5508 cat conftest.$ac_ext >&5 | 5540 cat conftest.$ac_ext >&5 |
5521 fi | 5553 fi |
5522 | 5554 |
5523 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 5555 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5524 # for constant arguments. Useless! | 5556 # for constant arguments. Useless! |
5525 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | 5557 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
5526 echo "configure:5527: checking for working alloca.h" >&5 | 5558 echo "configure:5559: checking for working alloca.h" >&5 |
5527 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then | 5559 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
5528 echo $ac_n "(cached) $ac_c" 1>&6 | 5560 echo $ac_n "(cached) $ac_c" 1>&6 |
5529 else | 5561 else |
5530 cat > conftest.$ac_ext <<EOF | 5562 cat > conftest.$ac_ext <<EOF |
5531 #line 5532 "configure" | 5563 #line 5564 "configure" |
5532 #include "confdefs.h" | 5564 #include "confdefs.h" |
5533 #include <alloca.h> | 5565 #include <alloca.h> |
5534 int main() { | 5566 int main() { |
5535 char *p = alloca(2 * sizeof(int)); | 5567 char *p = alloca(2 * sizeof(int)); |
5536 ; return 0; } | 5568 ; return 0; } |
5537 EOF | 5569 EOF |
5538 if { (eval echo configure:5539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5570 if { (eval echo configure:5571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5539 rm -rf conftest* | 5571 rm -rf conftest* |
5540 ac_cv_header_alloca_h=yes | 5572 ac_cv_header_alloca_h=yes |
5541 else | 5573 else |
5542 echo "configure: failed program was:" >&5 | 5574 echo "configure: failed program was:" >&5 |
5543 cat conftest.$ac_ext >&5 | 5575 cat conftest.$ac_ext >&5 |
5554 EOF | 5586 EOF |
5555 | 5587 |
5556 fi | 5588 fi |
5557 | 5589 |
5558 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | 5590 echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
5559 echo "configure:5560: checking for alloca" >&5 | 5591 echo "configure:5592: checking for alloca" >&5 |
5560 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then | 5592 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
5561 echo $ac_n "(cached) $ac_c" 1>&6 | 5593 echo $ac_n "(cached) $ac_c" 1>&6 |
5562 else | 5594 else |
5563 cat > conftest.$ac_ext <<EOF | 5595 cat > conftest.$ac_ext <<EOF |
5564 #line 5565 "configure" | 5596 #line 5597 "configure" |
5565 #include "confdefs.h" | 5597 #include "confdefs.h" |
5566 | 5598 |
5567 #ifdef __GNUC__ | 5599 #ifdef __GNUC__ |
5568 # define alloca __builtin_alloca | 5600 # define alloca __builtin_alloca |
5569 #else | 5601 #else |
5587 | 5619 |
5588 int main() { | 5620 int main() { |
5589 char *p = (char *) alloca(1); | 5621 char *p = (char *) alloca(1); |
5590 ; return 0; } | 5622 ; return 0; } |
5591 EOF | 5623 EOF |
5592 if { (eval echo configure:5593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5624 if { (eval echo configure:5625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5593 rm -rf conftest* | 5625 rm -rf conftest* |
5594 ac_cv_func_alloca_works=yes | 5626 ac_cv_func_alloca_works=yes |
5595 else | 5627 else |
5596 echo "configure: failed program was:" >&5 | 5628 echo "configure: failed program was:" >&5 |
5597 cat conftest.$ac_ext >&5 | 5629 cat conftest.$ac_ext >&5 |
5619 #define C_ALLOCA 1 | 5651 #define C_ALLOCA 1 |
5620 EOF | 5652 EOF |
5621 | 5653 |
5622 | 5654 |
5623 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | 5655 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
5624 echo "configure:5625: checking whether alloca needs Cray hooks" >&5 | 5656 echo "configure:5657: checking whether alloca needs Cray hooks" >&5 |
5625 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then | 5657 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
5626 echo $ac_n "(cached) $ac_c" 1>&6 | 5658 echo $ac_n "(cached) $ac_c" 1>&6 |
5627 else | 5659 else |
5628 cat > conftest.$ac_ext <<EOF | 5660 cat > conftest.$ac_ext <<EOF |
5629 #line 5630 "configure" | 5661 #line 5662 "configure" |
5630 #include "confdefs.h" | 5662 #include "confdefs.h" |
5631 #if defined(CRAY) && ! defined(CRAY2) | 5663 #if defined(CRAY) && ! defined(CRAY2) |
5632 webecray | 5664 webecray |
5633 #else | 5665 #else |
5634 wenotbecray | 5666 wenotbecray |
5649 | 5681 |
5650 echo "$ac_t""$ac_cv_os_cray" 1>&6 | 5682 echo "$ac_t""$ac_cv_os_cray" 1>&6 |
5651 if test $ac_cv_os_cray = yes; then | 5683 if test $ac_cv_os_cray = yes; then |
5652 for ac_func in _getb67 GETB67 getb67; do | 5684 for ac_func in _getb67 GETB67 getb67; do |
5653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5654 echo "configure:5655: checking for $ac_func" >&5 | 5686 echo "configure:5687: checking for $ac_func" >&5 |
5655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5656 echo $ac_n "(cached) $ac_c" 1>&6 | 5688 echo $ac_n "(cached) $ac_c" 1>&6 |
5657 else | 5689 else |
5658 cat > conftest.$ac_ext <<EOF | 5690 cat > conftest.$ac_ext <<EOF |
5659 #line 5660 "configure" | 5691 #line 5692 "configure" |
5660 #include "confdefs.h" | 5692 #include "confdefs.h" |
5661 /* System header to define __stub macros and hopefully few prototypes, | 5693 /* System header to define __stub macros and hopefully few prototypes, |
5662 which can conflict with char $ac_func(); below. */ | 5694 which can conflict with char $ac_func(); below. */ |
5663 #include <assert.h> | 5695 #include <assert.h> |
5664 /* Override any gcc2 internal prototype to avoid an error. */ | 5696 /* Override any gcc2 internal prototype to avoid an error. */ |
5677 $ac_func(); | 5709 $ac_func(); |
5678 #endif | 5710 #endif |
5679 | 5711 |
5680 ; return 0; } | 5712 ; return 0; } |
5681 EOF | 5713 EOF |
5682 if { (eval echo configure:5683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5714 if { (eval echo configure:5715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5683 rm -rf conftest* | 5715 rm -rf conftest* |
5684 eval "ac_cv_func_$ac_func=yes" | 5716 eval "ac_cv_func_$ac_func=yes" |
5685 else | 5717 else |
5686 echo "configure: failed program was:" >&5 | 5718 echo "configure: failed program was:" >&5 |
5687 cat conftest.$ac_ext >&5 | 5719 cat conftest.$ac_ext >&5 |
5704 | 5736 |
5705 done | 5737 done |
5706 fi | 5738 fi |
5707 | 5739 |
5708 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | 5740 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
5709 echo "configure:5710: checking stack direction for C alloca" >&5 | 5741 echo "configure:5742: checking stack direction for C alloca" >&5 |
5710 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | 5742 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
5711 echo $ac_n "(cached) $ac_c" 1>&6 | 5743 echo $ac_n "(cached) $ac_c" 1>&6 |
5712 else | 5744 else |
5713 if test "$cross_compiling" = yes; then | 5745 if test "$cross_compiling" = yes; then |
5714 ac_cv_c_stack_direction=0 | 5746 ac_cv_c_stack_direction=0 |
5715 else | 5747 else |
5716 cat > conftest.$ac_ext <<EOF | 5748 cat > conftest.$ac_ext <<EOF |
5717 #line 5718 "configure" | 5749 #line 5750 "configure" |
5718 #include "confdefs.h" | 5750 #include "confdefs.h" |
5719 find_stack_direction () | 5751 find_stack_direction () |
5720 { | 5752 { |
5721 static char *addr = 0; | 5753 static char *addr = 0; |
5722 auto char dummy; | 5754 auto char dummy; |
5731 main () | 5763 main () |
5732 { | 5764 { |
5733 exit (find_stack_direction() < 0); | 5765 exit (find_stack_direction() < 0); |
5734 } | 5766 } |
5735 EOF | 5767 EOF |
5736 if { (eval echo configure:5737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 5768 if { (eval echo configure:5769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5737 then | 5769 then |
5738 ac_cv_c_stack_direction=1 | 5770 ac_cv_c_stack_direction=1 |
5739 else | 5771 else |
5740 echo "configure: failed program was:" >&5 | 5772 echo "configure: failed program was:" >&5 |
5741 cat conftest.$ac_ext >&5 | 5773 cat conftest.$ac_ext >&5 |
5756 | 5788 |
5757 | 5789 |
5758 # fmod, logb, and frexp are found in -lm on most systems. | 5790 # fmod, logb, and frexp are found in -lm on most systems. |
5759 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | 5791 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. |
5760 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 | 5792 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 |
5761 echo "configure:5762: checking for sqrt in -lm" >&5 | 5793 echo "configure:5794: checking for sqrt in -lm" >&5 |
5762 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` | 5794 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` |
5763 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5764 echo $ac_n "(cached) $ac_c" 1>&6 | 5796 echo $ac_n "(cached) $ac_c" 1>&6 |
5765 else | 5797 else |
5766 ac_save_LIBS="$LIBS" | 5798 ac_save_LIBS="$LIBS" |
5767 LIBS="-lm $LIBS" | 5799 LIBS="-lm $LIBS" |
5768 cat > conftest.$ac_ext <<EOF | 5800 cat > conftest.$ac_ext <<EOF |
5769 #line 5770 "configure" | 5801 #line 5802 "configure" |
5770 #include "confdefs.h" | 5802 #include "confdefs.h" |
5771 /* Override any gcc2 internal prototype to avoid an error. */ | 5803 /* Override any gcc2 internal prototype to avoid an error. */ |
5772 /* We use char because int might match the return type of a gcc2 | 5804 /* We use char because int might match the return type of a gcc2 |
5773 builtin and then its argument prototype would still apply. */ | 5805 builtin and then its argument prototype would still apply. */ |
5774 char sqrt(); | 5806 char sqrt(); |
5775 | 5807 |
5776 int main() { | 5808 int main() { |
5777 sqrt() | 5809 sqrt() |
5778 ; return 0; } | 5810 ; return 0; } |
5779 EOF | 5811 EOF |
5780 if { (eval echo configure:5781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5812 if { (eval echo configure:5813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5781 rm -rf conftest* | 5813 rm -rf conftest* |
5782 eval "ac_cv_lib_$ac_lib_var=yes" | 5814 eval "ac_cv_lib_$ac_lib_var=yes" |
5783 else | 5815 else |
5784 echo "configure: failed program was:" >&5 | 5816 echo "configure: failed program was:" >&5 |
5785 cat conftest.$ac_ext >&5 | 5817 cat conftest.$ac_ext >&5 |
5805 fi | 5837 fi |
5806 | 5838 |
5807 | 5839 |
5808 # Check for mail-locking functions in a "mail" library | 5840 # Check for mail-locking functions in a "mail" library |
5809 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 | 5841 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 |
5810 echo "configure:5811: checking for maillock in -lmail" >&5 | 5842 echo "configure:5843: checking for maillock in -lmail" >&5 |
5811 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` | 5843 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` |
5812 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5844 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5813 echo $ac_n "(cached) $ac_c" 1>&6 | 5845 echo $ac_n "(cached) $ac_c" 1>&6 |
5814 else | 5846 else |
5815 ac_save_LIBS="$LIBS" | 5847 ac_save_LIBS="$LIBS" |
5816 LIBS="-lmail $LIBS" | 5848 LIBS="-lmail $LIBS" |
5817 cat > conftest.$ac_ext <<EOF | 5849 cat > conftest.$ac_ext <<EOF |
5818 #line 5819 "configure" | 5850 #line 5851 "configure" |
5819 #include "confdefs.h" | 5851 #include "confdefs.h" |
5820 /* Override any gcc2 internal prototype to avoid an error. */ | 5852 /* Override any gcc2 internal prototype to avoid an error. */ |
5821 /* We use char because int might match the return type of a gcc2 | 5853 /* We use char because int might match the return type of a gcc2 |
5822 builtin and then its argument prototype would still apply. */ | 5854 builtin and then its argument prototype would still apply. */ |
5823 char maillock(); | 5855 char maillock(); |
5824 | 5856 |
5825 int main() { | 5857 int main() { |
5826 maillock() | 5858 maillock() |
5827 ; return 0; } | 5859 ; return 0; } |
5828 EOF | 5860 EOF |
5829 if { (eval echo configure:5830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5861 if { (eval echo configure:5862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5830 rm -rf conftest* | 5862 rm -rf conftest* |
5831 eval "ac_cv_lib_$ac_lib_var=yes" | 5863 eval "ac_cv_lib_$ac_lib_var=yes" |
5832 else | 5864 else |
5833 echo "configure: failed program was:" >&5 | 5865 echo "configure: failed program was:" >&5 |
5834 cat conftest.$ac_ext >&5 | 5866 cat conftest.$ac_ext >&5 |
5852 else | 5884 else |
5853 echo "$ac_t""no" 1>&6 | 5885 echo "$ac_t""no" 1>&6 |
5854 fi | 5886 fi |
5855 | 5887 |
5856 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 | 5888 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 |
5857 echo "configure:5858: checking for maillock in -llockfile" >&5 | 5889 echo "configure:5890: checking for maillock in -llockfile" >&5 |
5858 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` | 5890 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` |
5859 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5860 echo $ac_n "(cached) $ac_c" 1>&6 | 5892 echo $ac_n "(cached) $ac_c" 1>&6 |
5861 else | 5893 else |
5862 ac_save_LIBS="$LIBS" | 5894 ac_save_LIBS="$LIBS" |
5863 LIBS="-llockfile $LIBS" | 5895 LIBS="-llockfile $LIBS" |
5864 cat > conftest.$ac_ext <<EOF | 5896 cat > conftest.$ac_ext <<EOF |
5865 #line 5866 "configure" | 5897 #line 5898 "configure" |
5866 #include "confdefs.h" | 5898 #include "confdefs.h" |
5867 /* Override any gcc2 internal prototype to avoid an error. */ | 5899 /* Override any gcc2 internal prototype to avoid an error. */ |
5868 /* We use char because int might match the return type of a gcc2 | 5900 /* We use char because int might match the return type of a gcc2 |
5869 builtin and then its argument prototype would still apply. */ | 5901 builtin and then its argument prototype would still apply. */ |
5870 char maillock(); | 5902 char maillock(); |
5871 | 5903 |
5872 int main() { | 5904 int main() { |
5873 maillock() | 5905 maillock() |
5874 ; return 0; } | 5906 ; return 0; } |
5875 EOF | 5907 EOF |
5876 if { (eval echo configure:5877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5908 if { (eval echo configure:5909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5877 rm -rf conftest* | 5909 rm -rf conftest* |
5878 eval "ac_cv_lib_$ac_lib_var=yes" | 5910 eval "ac_cv_lib_$ac_lib_var=yes" |
5879 else | 5911 else |
5880 echo "configure: failed program was:" >&5 | 5912 echo "configure: failed program was:" >&5 |
5881 cat conftest.$ac_ext >&5 | 5913 cat conftest.$ac_ext >&5 |
5905 # (no liblockfile.a installed), ensure that we don't need to. | 5937 # (no liblockfile.a installed), ensure that we don't need to. |
5906 if test "$ac_cv_lib_lockfile_maillock" = no; then | 5938 if test "$ac_cv_lib_lockfile_maillock" = no; then |
5907 # Extract the first word of "liblockfile.so", so it can be a program name with args. | 5939 # Extract the first word of "liblockfile.so", so it can be a program name with args. |
5908 set dummy liblockfile.so; ac_word=$2 | 5940 set dummy liblockfile.so; ac_word=$2 |
5909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 5941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5910 echo "configure:5911: checking for $ac_word" >&5 | 5942 echo "configure:5943: checking for $ac_word" >&5 |
5911 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then | 5943 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then |
5912 echo $ac_n "(cached) $ac_c" 1>&6 | 5944 echo $ac_n "(cached) $ac_c" 1>&6 |
5913 else | 5945 else |
5914 if test -n "$liblockfile"; then | 5946 if test -n "$liblockfile"; then |
5915 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | 5947 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. |
5946 else : | 5978 else : |
5947 fi | 5979 fi |
5948 for ac_func in touchlock | 5980 for ac_func in touchlock |
5949 do | 5981 do |
5950 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5951 echo "configure:5952: checking for $ac_func" >&5 | 5983 echo "configure:5984: checking for $ac_func" >&5 |
5952 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5984 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5953 echo $ac_n "(cached) $ac_c" 1>&6 | 5985 echo $ac_n "(cached) $ac_c" 1>&6 |
5954 else | 5986 else |
5955 cat > conftest.$ac_ext <<EOF | 5987 cat > conftest.$ac_ext <<EOF |
5956 #line 5957 "configure" | 5988 #line 5989 "configure" |
5957 #include "confdefs.h" | 5989 #include "confdefs.h" |
5958 /* System header to define __stub macros and hopefully few prototypes, | 5990 /* System header to define __stub macros and hopefully few prototypes, |
5959 which can conflict with char $ac_func(); below. */ | 5991 which can conflict with char $ac_func(); below. */ |
5960 #include <assert.h> | 5992 #include <assert.h> |
5961 /* Override any gcc2 internal prototype to avoid an error. */ | 5993 /* Override any gcc2 internal prototype to avoid an error. */ |
5974 $ac_func(); | 6006 $ac_func(); |
5975 #endif | 6007 #endif |
5976 | 6008 |
5977 ; return 0; } | 6009 ; return 0; } |
5978 EOF | 6010 EOF |
5979 if { (eval echo configure:5980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6011 if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5980 rm -rf conftest* | 6012 rm -rf conftest* |
5981 eval "ac_cv_func_$ac_func=yes" | 6013 eval "ac_cv_func_$ac_func=yes" |
5982 else | 6014 else |
5983 echo "configure: failed program was:" >&5 | 6015 echo "configure: failed program was:" >&5 |
5984 cat conftest.$ac_ext >&5 | 6016 cat conftest.$ac_ext >&5 |
6002 | 6034 |
6003 for ac_hdr in maillock.h | 6035 for ac_hdr in maillock.h |
6004 do | 6036 do |
6005 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6037 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6006 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6038 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6007 echo "configure:6008: checking for $ac_hdr" >&5 | 6039 echo "configure:6040: checking for $ac_hdr" >&5 |
6008 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6040 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6009 echo $ac_n "(cached) $ac_c" 1>&6 | 6041 echo $ac_n "(cached) $ac_c" 1>&6 |
6010 else | 6042 else |
6011 cat > conftest.$ac_ext <<EOF | 6043 cat > conftest.$ac_ext <<EOF |
6012 #line 6013 "configure" | 6044 #line 6045 "configure" |
6013 #include "confdefs.h" | 6045 #include "confdefs.h" |
6014 #include <$ac_hdr> | 6046 #include <$ac_hdr> |
6015 EOF | 6047 EOF |
6016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6017 { (eval echo configure:6018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6049 { (eval echo configure:6050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6019 if test -z "$ac_err"; then | 6051 if test -z "$ac_err"; then |
6020 rm -rf conftest* | 6052 rm -rf conftest* |
6021 eval "ac_cv_header_$ac_safe=yes" | 6053 eval "ac_cv_header_$ac_safe=yes" |
6022 else | 6054 else |
6048 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ | 6080 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
6049 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \ | 6081 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \ |
6050 gai_strerror mkstemp | 6082 gai_strerror mkstemp |
6051 do | 6083 do |
6052 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6053 echo "configure:6054: checking for $ac_func" >&5 | 6085 echo "configure:6086: checking for $ac_func" >&5 |
6054 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6055 echo $ac_n "(cached) $ac_c" 1>&6 | 6087 echo $ac_n "(cached) $ac_c" 1>&6 |
6056 else | 6088 else |
6057 cat > conftest.$ac_ext <<EOF | 6089 cat > conftest.$ac_ext <<EOF |
6058 #line 6059 "configure" | 6090 #line 6091 "configure" |
6059 #include "confdefs.h" | 6091 #include "confdefs.h" |
6060 /* System header to define __stub macros and hopefully few prototypes, | 6092 /* System header to define __stub macros and hopefully few prototypes, |
6061 which can conflict with char $ac_func(); below. */ | 6093 which can conflict with char $ac_func(); below. */ |
6062 #include <assert.h> | 6094 #include <assert.h> |
6063 /* Override any gcc2 internal prototype to avoid an error. */ | 6095 /* Override any gcc2 internal prototype to avoid an error. */ |
6076 $ac_func(); | 6108 $ac_func(); |
6077 #endif | 6109 #endif |
6078 | 6110 |
6079 ; return 0; } | 6111 ; return 0; } |
6080 EOF | 6112 EOF |
6081 if { (eval echo configure:6082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6113 if { (eval echo configure:6114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6082 rm -rf conftest* | 6114 rm -rf conftest* |
6083 eval "ac_cv_func_$ac_func=yes" | 6115 eval "ac_cv_func_$ac_func=yes" |
6084 else | 6116 else |
6085 echo "configure: failed program was:" >&5 | 6117 echo "configure: failed program was:" >&5 |
6086 cat conftest.$ac_ext >&5 | 6118 cat conftest.$ac_ext >&5 |
6105 | 6137 |
6106 for ac_hdr in sys/time.h unistd.h | 6138 for ac_hdr in sys/time.h unistd.h |
6107 do | 6139 do |
6108 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6140 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6109 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6141 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6110 echo "configure:6111: checking for $ac_hdr" >&5 | 6142 echo "configure:6143: checking for $ac_hdr" >&5 |
6111 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6143 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6112 echo $ac_n "(cached) $ac_c" 1>&6 | 6144 echo $ac_n "(cached) $ac_c" 1>&6 |
6113 else | 6145 else |
6114 cat > conftest.$ac_ext <<EOF | 6146 cat > conftest.$ac_ext <<EOF |
6115 #line 6116 "configure" | 6147 #line 6148 "configure" |
6116 #include "confdefs.h" | 6148 #include "confdefs.h" |
6117 #include <$ac_hdr> | 6149 #include <$ac_hdr> |
6118 EOF | 6150 EOF |
6119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6120 { (eval echo configure:6121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6152 { (eval echo configure:6153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6122 if test -z "$ac_err"; then | 6154 if test -z "$ac_err"; then |
6123 rm -rf conftest* | 6155 rm -rf conftest* |
6124 eval "ac_cv_header_$ac_safe=yes" | 6156 eval "ac_cv_header_$ac_safe=yes" |
6125 else | 6157 else |
6144 done | 6176 done |
6145 | 6177 |
6146 for ac_func in alarm | 6178 for ac_func in alarm |
6147 do | 6179 do |
6148 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6149 echo "configure:6150: checking for $ac_func" >&5 | 6181 echo "configure:6182: checking for $ac_func" >&5 |
6150 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6151 echo $ac_n "(cached) $ac_c" 1>&6 | 6183 echo $ac_n "(cached) $ac_c" 1>&6 |
6152 else | 6184 else |
6153 cat > conftest.$ac_ext <<EOF | 6185 cat > conftest.$ac_ext <<EOF |
6154 #line 6155 "configure" | 6186 #line 6187 "configure" |
6155 #include "confdefs.h" | 6187 #include "confdefs.h" |
6156 /* System header to define __stub macros and hopefully few prototypes, | 6188 /* System header to define __stub macros and hopefully few prototypes, |
6157 which can conflict with char $ac_func(); below. */ | 6189 which can conflict with char $ac_func(); below. */ |
6158 #include <assert.h> | 6190 #include <assert.h> |
6159 /* Override any gcc2 internal prototype to avoid an error. */ | 6191 /* Override any gcc2 internal prototype to avoid an error. */ |
6172 $ac_func(); | 6204 $ac_func(); |
6173 #endif | 6205 #endif |
6174 | 6206 |
6175 ; return 0; } | 6207 ; return 0; } |
6176 EOF | 6208 EOF |
6177 if { (eval echo configure:6178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6209 if { (eval echo configure:6210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6178 rm -rf conftest* | 6210 rm -rf conftest* |
6179 eval "ac_cv_func_$ac_func=yes" | 6211 eval "ac_cv_func_$ac_func=yes" |
6180 else | 6212 else |
6181 echo "configure: failed program was:" >&5 | 6213 echo "configure: failed program was:" >&5 |
6182 cat conftest.$ac_ext >&5 | 6214 cat conftest.$ac_ext >&5 |
6197 echo "$ac_t""no" 1>&6 | 6229 echo "$ac_t""no" 1>&6 |
6198 fi | 6230 fi |
6199 done | 6231 done |
6200 | 6232 |
6201 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 | 6233 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 |
6202 echo "configure:6203: checking for working mktime" >&5 | 6234 echo "configure:6235: checking for working mktime" >&5 |
6203 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then | 6235 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then |
6204 echo $ac_n "(cached) $ac_c" 1>&6 | 6236 echo $ac_n "(cached) $ac_c" 1>&6 |
6205 else | 6237 else |
6206 if test "$cross_compiling" = yes; then | 6238 if test "$cross_compiling" = yes; then |
6207 ac_cv_func_working_mktime=no | 6239 ac_cv_func_working_mktime=no |
6208 else | 6240 else |
6209 cat > conftest.$ac_ext <<EOF | 6241 cat > conftest.$ac_ext <<EOF |
6210 #line 6211 "configure" | 6242 #line 6243 "configure" |
6211 #include "confdefs.h" | 6243 #include "confdefs.h" |
6212 /* Test program from Paul Eggert (eggert@twinsun.com) | 6244 /* Test program from Paul Eggert (eggert@twinsun.com) |
6213 and Tony Leneis (tony@plaza.ds.adp.com). */ | 6245 and Tony Leneis (tony@plaza.ds.adp.com). */ |
6214 #if TIME_WITH_SYS_TIME | 6246 #if TIME_WITH_SYS_TIME |
6215 # include <sys/time.h> | 6247 # include <sys/time.h> |
6354 irix_6_4_bug (); | 6386 irix_6_4_bug (); |
6355 spring_forward_gap (); | 6387 spring_forward_gap (); |
6356 exit (0); | 6388 exit (0); |
6357 } | 6389 } |
6358 EOF | 6390 EOF |
6359 if { (eval echo configure:6360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 6391 if { (eval echo configure:6392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6360 then | 6392 then |
6361 ac_cv_func_working_mktime=yes | 6393 ac_cv_func_working_mktime=yes |
6362 else | 6394 else |
6363 echo "configure: failed program was:" >&5 | 6395 echo "configure: failed program was:" >&5 |
6364 cat conftest.$ac_ext >&5 | 6396 cat conftest.$ac_ext >&5 |
6386 | 6418 |
6387 # Some systems with -lutil have (and need) -lkvm as well, some do not. | 6419 # Some systems with -lutil have (and need) -lkvm as well, some do not. |
6388 # On Solaris, -lkvm requires nlist from -lelf, so check that first | 6420 # On Solaris, -lkvm requires nlist from -lelf, so check that first |
6389 # to get the right answer into the cache. | 6421 # to get the right answer into the cache. |
6390 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 | 6422 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 |
6391 echo "configure:6392: checking for elf_begin in -lelf" >&5 | 6423 echo "configure:6424: checking for elf_begin in -lelf" >&5 |
6392 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` | 6424 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` |
6393 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6394 echo $ac_n "(cached) $ac_c" 1>&6 | 6426 echo $ac_n "(cached) $ac_c" 1>&6 |
6395 else | 6427 else |
6396 ac_save_LIBS="$LIBS" | 6428 ac_save_LIBS="$LIBS" |
6397 LIBS="-lelf $LIBS" | 6429 LIBS="-lelf $LIBS" |
6398 cat > conftest.$ac_ext <<EOF | 6430 cat > conftest.$ac_ext <<EOF |
6399 #line 6400 "configure" | 6431 #line 6432 "configure" |
6400 #include "confdefs.h" | 6432 #include "confdefs.h" |
6401 /* Override any gcc2 internal prototype to avoid an error. */ | 6433 /* Override any gcc2 internal prototype to avoid an error. */ |
6402 /* We use char because int might match the return type of a gcc2 | 6434 /* We use char because int might match the return type of a gcc2 |
6403 builtin and then its argument prototype would still apply. */ | 6435 builtin and then its argument prototype would still apply. */ |
6404 char elf_begin(); | 6436 char elf_begin(); |
6405 | 6437 |
6406 int main() { | 6438 int main() { |
6407 elf_begin() | 6439 elf_begin() |
6408 ; return 0; } | 6440 ; return 0; } |
6409 EOF | 6441 EOF |
6410 if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6442 if { (eval echo configure:6443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6411 rm -rf conftest* | 6443 rm -rf conftest* |
6412 eval "ac_cv_lib_$ac_lib_var=yes" | 6444 eval "ac_cv_lib_$ac_lib_var=yes" |
6413 else | 6445 else |
6414 echo "configure: failed program was:" >&5 | 6446 echo "configure: failed program was:" >&5 |
6415 cat conftest.$ac_ext >&5 | 6447 cat conftest.$ac_ext >&5 |
6426 else | 6458 else |
6427 echo "$ac_t""no" 1>&6 | 6459 echo "$ac_t""no" 1>&6 |
6428 fi | 6460 fi |
6429 | 6461 |
6430 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 | 6462 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 |
6431 echo "configure:6432: checking for kvm_open in -lkvm" >&5 | 6463 echo "configure:6464: checking for kvm_open in -lkvm" >&5 |
6432 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` | 6464 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` |
6433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6434 echo $ac_n "(cached) $ac_c" 1>&6 | 6466 echo $ac_n "(cached) $ac_c" 1>&6 |
6435 else | 6467 else |
6436 ac_save_LIBS="$LIBS" | 6468 ac_save_LIBS="$LIBS" |
6437 LIBS="-lkvm $LIBS" | 6469 LIBS="-lkvm $LIBS" |
6438 cat > conftest.$ac_ext <<EOF | 6470 cat > conftest.$ac_ext <<EOF |
6439 #line 6440 "configure" | 6471 #line 6472 "configure" |
6440 #include "confdefs.h" | 6472 #include "confdefs.h" |
6441 /* Override any gcc2 internal prototype to avoid an error. */ | 6473 /* Override any gcc2 internal prototype to avoid an error. */ |
6442 /* We use char because int might match the return type of a gcc2 | 6474 /* We use char because int might match the return type of a gcc2 |
6443 builtin and then its argument prototype would still apply. */ | 6475 builtin and then its argument prototype would still apply. */ |
6444 char kvm_open(); | 6476 char kvm_open(); |
6445 | 6477 |
6446 int main() { | 6478 int main() { |
6447 kvm_open() | 6479 kvm_open() |
6448 ; return 0; } | 6480 ; return 0; } |
6449 EOF | 6481 EOF |
6450 if { (eval echo configure:6451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6482 if { (eval echo configure:6483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6451 rm -rf conftest* | 6483 rm -rf conftest* |
6452 eval "ac_cv_lib_$ac_lib_var=yes" | 6484 eval "ac_cv_lib_$ac_lib_var=yes" |
6453 else | 6485 else |
6454 echo "configure: failed program was:" >&5 | 6486 echo "configure: failed program was:" >&5 |
6455 cat conftest.$ac_ext >&5 | 6487 cat conftest.$ac_ext >&5 |
6467 echo "$ac_t""no" 1>&6 | 6499 echo "$ac_t""no" 1>&6 |
6468 fi | 6500 fi |
6469 | 6501 |
6470 # Check for the 4.4BSD definition of getloadavg. | 6502 # Check for the 4.4BSD definition of getloadavg. |
6471 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 | 6503 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 |
6472 echo "configure:6473: checking for getloadavg in -lutil" >&5 | 6504 echo "configure:6505: checking for getloadavg in -lutil" >&5 |
6473 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` | 6505 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` |
6474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6475 echo $ac_n "(cached) $ac_c" 1>&6 | 6507 echo $ac_n "(cached) $ac_c" 1>&6 |
6476 else | 6508 else |
6477 ac_save_LIBS="$LIBS" | 6509 ac_save_LIBS="$LIBS" |
6478 LIBS="-lutil $LIBS" | 6510 LIBS="-lutil $LIBS" |
6479 cat > conftest.$ac_ext <<EOF | 6511 cat > conftest.$ac_ext <<EOF |
6480 #line 6481 "configure" | 6512 #line 6513 "configure" |
6481 #include "confdefs.h" | 6513 #include "confdefs.h" |
6482 /* Override any gcc2 internal prototype to avoid an error. */ | 6514 /* Override any gcc2 internal prototype to avoid an error. */ |
6483 /* We use char because int might match the return type of a gcc2 | 6515 /* We use char because int might match the return type of a gcc2 |
6484 builtin and then its argument prototype would still apply. */ | 6516 builtin and then its argument prototype would still apply. */ |
6485 char getloadavg(); | 6517 char getloadavg(); |
6486 | 6518 |
6487 int main() { | 6519 int main() { |
6488 getloadavg() | 6520 getloadavg() |
6489 ; return 0; } | 6521 ; return 0; } |
6490 EOF | 6522 EOF |
6491 if { (eval echo configure:6492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6523 if { (eval echo configure:6524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6492 rm -rf conftest* | 6524 rm -rf conftest* |
6493 eval "ac_cv_lib_$ac_lib_var=yes" | 6525 eval "ac_cv_lib_$ac_lib_var=yes" |
6494 else | 6526 else |
6495 echo "configure: failed program was:" >&5 | 6527 echo "configure: failed program was:" >&5 |
6496 cat conftest.$ac_ext >&5 | 6528 cat conftest.$ac_ext >&5 |
6512 if test $ac_have_func = no; then | 6544 if test $ac_have_func = no; then |
6513 # There is a commonly available library for RS/6000 AIX. | 6545 # There is a commonly available library for RS/6000 AIX. |
6514 # Since it is not a standard part of AIX, it might be installed locally. | 6546 # Since it is not a standard part of AIX, it might be installed locally. |
6515 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" | 6547 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" |
6516 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 | 6548 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 |
6517 echo "configure:6518: checking for getloadavg in -lgetloadavg" >&5 | 6549 echo "configure:6550: checking for getloadavg in -lgetloadavg" >&5 |
6518 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` | 6550 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` |
6519 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6520 echo $ac_n "(cached) $ac_c" 1>&6 | 6552 echo $ac_n "(cached) $ac_c" 1>&6 |
6521 else | 6553 else |
6522 ac_save_LIBS="$LIBS" | 6554 ac_save_LIBS="$LIBS" |
6523 LIBS="-lgetloadavg $LIBS" | 6555 LIBS="-lgetloadavg $LIBS" |
6524 cat > conftest.$ac_ext <<EOF | 6556 cat > conftest.$ac_ext <<EOF |
6525 #line 6526 "configure" | 6557 #line 6558 "configure" |
6526 #include "confdefs.h" | 6558 #include "confdefs.h" |
6527 /* Override any gcc2 internal prototype to avoid an error. */ | 6559 /* Override any gcc2 internal prototype to avoid an error. */ |
6528 /* We use char because int might match the return type of a gcc2 | 6560 /* We use char because int might match the return type of a gcc2 |
6529 builtin and then its argument prototype would still apply. */ | 6561 builtin and then its argument prototype would still apply. */ |
6530 char getloadavg(); | 6562 char getloadavg(); |
6531 | 6563 |
6532 int main() { | 6564 int main() { |
6533 getloadavg() | 6565 getloadavg() |
6534 ; return 0; } | 6566 ; return 0; } |
6535 EOF | 6567 EOF |
6536 if { (eval echo configure:6537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6568 if { (eval echo configure:6569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6537 rm -rf conftest* | 6569 rm -rf conftest* |
6538 eval "ac_cv_lib_$ac_lib_var=yes" | 6570 eval "ac_cv_lib_$ac_lib_var=yes" |
6539 else | 6571 else |
6540 echo "configure: failed program was:" >&5 | 6572 echo "configure: failed program was:" >&5 |
6541 cat conftest.$ac_ext >&5 | 6573 cat conftest.$ac_ext >&5 |
6558 | 6590 |
6559 # Make sure it is really in the library, if we think we found it. | 6591 # Make sure it is really in the library, if we think we found it. |
6560 for ac_func in getloadavg | 6592 for ac_func in getloadavg |
6561 do | 6593 do |
6562 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6563 echo "configure:6564: checking for $ac_func" >&5 | 6595 echo "configure:6596: checking for $ac_func" >&5 |
6564 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6565 echo $ac_n "(cached) $ac_c" 1>&6 | 6597 echo $ac_n "(cached) $ac_c" 1>&6 |
6566 else | 6598 else |
6567 cat > conftest.$ac_ext <<EOF | 6599 cat > conftest.$ac_ext <<EOF |
6568 #line 6569 "configure" | 6600 #line 6601 "configure" |
6569 #include "confdefs.h" | 6601 #include "confdefs.h" |
6570 /* System header to define __stub macros and hopefully few prototypes, | 6602 /* System header to define __stub macros and hopefully few prototypes, |
6571 which can conflict with char $ac_func(); below. */ | 6603 which can conflict with char $ac_func(); below. */ |
6572 #include <assert.h> | 6604 #include <assert.h> |
6573 /* Override any gcc2 internal prototype to avoid an error. */ | 6605 /* Override any gcc2 internal prototype to avoid an error. */ |
6586 $ac_func(); | 6618 $ac_func(); |
6587 #endif | 6619 #endif |
6588 | 6620 |
6589 ; return 0; } | 6621 ; return 0; } |
6590 EOF | 6622 EOF |
6591 if { (eval echo configure:6592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6623 if { (eval echo configure:6624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6592 rm -rf conftest* | 6624 rm -rf conftest* |
6593 eval "ac_cv_func_$ac_func=yes" | 6625 eval "ac_cv_func_$ac_func=yes" |
6594 else | 6626 else |
6595 echo "configure: failed program was:" >&5 | 6627 echo "configure: failed program was:" >&5 |
6596 cat conftest.$ac_ext >&5 | 6628 cat conftest.$ac_ext >&5 |
6624 else | 6656 else |
6625 # Figure out what our getloadavg.c needs. | 6657 # Figure out what our getloadavg.c needs. |
6626 ac_have_func=no | 6658 ac_have_func=no |
6627 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` | 6659 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` |
6628 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 | 6660 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 |
6629 echo "configure:6630: checking for sys/dg_sys_info.h" >&5 | 6661 echo "configure:6662: checking for sys/dg_sys_info.h" >&5 |
6630 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6631 echo $ac_n "(cached) $ac_c" 1>&6 | 6663 echo $ac_n "(cached) $ac_c" 1>&6 |
6632 else | 6664 else |
6633 cat > conftest.$ac_ext <<EOF | 6665 cat > conftest.$ac_ext <<EOF |
6634 #line 6635 "configure" | 6666 #line 6667 "configure" |
6635 #include "confdefs.h" | 6667 #include "confdefs.h" |
6636 #include <sys/dg_sys_info.h> | 6668 #include <sys/dg_sys_info.h> |
6637 EOF | 6669 EOF |
6638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6639 { (eval echo configure:6640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6671 { (eval echo configure:6672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6641 if test -z "$ac_err"; then | 6673 if test -z "$ac_err"; then |
6642 rm -rf conftest* | 6674 rm -rf conftest* |
6643 eval "ac_cv_header_$ac_safe=yes" | 6675 eval "ac_cv_header_$ac_safe=yes" |
6644 else | 6676 else |
6655 ac_have_func=yes; cat >> confdefs.h <<\EOF | 6687 ac_have_func=yes; cat >> confdefs.h <<\EOF |
6656 #define DGUX 1 | 6688 #define DGUX 1 |
6657 EOF | 6689 EOF |
6658 | 6690 |
6659 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 | 6691 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 |
6660 echo "configure:6661: checking for dg_sys_info in -ldgc" >&5 | 6692 echo "configure:6693: checking for dg_sys_info in -ldgc" >&5 |
6661 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` | 6693 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` |
6662 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6694 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6663 echo $ac_n "(cached) $ac_c" 1>&6 | 6695 echo $ac_n "(cached) $ac_c" 1>&6 |
6664 else | 6696 else |
6665 ac_save_LIBS="$LIBS" | 6697 ac_save_LIBS="$LIBS" |
6666 LIBS="-ldgc $LIBS" | 6698 LIBS="-ldgc $LIBS" |
6667 cat > conftest.$ac_ext <<EOF | 6699 cat > conftest.$ac_ext <<EOF |
6668 #line 6669 "configure" | 6700 #line 6701 "configure" |
6669 #include "confdefs.h" | 6701 #include "confdefs.h" |
6670 /* Override any gcc2 internal prototype to avoid an error. */ | 6702 /* Override any gcc2 internal prototype to avoid an error. */ |
6671 /* We use char because int might match the return type of a gcc2 | 6703 /* We use char because int might match the return type of a gcc2 |
6672 builtin and then its argument prototype would still apply. */ | 6704 builtin and then its argument prototype would still apply. */ |
6673 char dg_sys_info(); | 6705 char dg_sys_info(); |
6674 | 6706 |
6675 int main() { | 6707 int main() { |
6676 dg_sys_info() | 6708 dg_sys_info() |
6677 ; return 0; } | 6709 ; return 0; } |
6678 EOF | 6710 EOF |
6679 if { (eval echo configure:6680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6711 if { (eval echo configure:6712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6680 rm -rf conftest* | 6712 rm -rf conftest* |
6681 eval "ac_cv_lib_$ac_lib_var=yes" | 6713 eval "ac_cv_lib_$ac_lib_var=yes" |
6682 else | 6714 else |
6683 echo "configure: failed program was:" >&5 | 6715 echo "configure: failed program was:" >&5 |
6684 cat conftest.$ac_ext >&5 | 6716 cat conftest.$ac_ext >&5 |
6719 fi | 6751 fi |
6720 | 6752 |
6721 if test $ac_have_func = no; then | 6753 if test $ac_have_func = no; then |
6722 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` | 6754 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` |
6723 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 | 6755 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 |
6724 echo "configure:6725: checking for inq_stats/cpustats.h" >&5 | 6756 echo "configure:6757: checking for inq_stats/cpustats.h" >&5 |
6725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6757 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6726 echo $ac_n "(cached) $ac_c" 1>&6 | 6758 echo $ac_n "(cached) $ac_c" 1>&6 |
6727 else | 6759 else |
6728 cat > conftest.$ac_ext <<EOF | 6760 cat > conftest.$ac_ext <<EOF |
6729 #line 6730 "configure" | 6761 #line 6762 "configure" |
6730 #include "confdefs.h" | 6762 #include "confdefs.h" |
6731 #include <inq_stats/cpustats.h> | 6763 #include <inq_stats/cpustats.h> |
6732 EOF | 6764 EOF |
6733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6734 { (eval echo configure:6735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6766 { (eval echo configure:6767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6736 if test -z "$ac_err"; then | 6768 if test -z "$ac_err"; then |
6737 rm -rf conftest* | 6769 rm -rf conftest* |
6738 eval "ac_cv_header_$ac_safe=yes" | 6770 eval "ac_cv_header_$ac_safe=yes" |
6739 else | 6771 else |
6762 fi | 6794 fi |
6763 | 6795 |
6764 if test $ac_have_func = no; then | 6796 if test $ac_have_func = no; then |
6765 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` | 6797 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` |
6766 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 | 6798 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 |
6767 echo "configure:6768: checking for sys/cpustats.h" >&5 | 6799 echo "configure:6800: checking for sys/cpustats.h" >&5 |
6768 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6800 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6769 echo $ac_n "(cached) $ac_c" 1>&6 | 6801 echo $ac_n "(cached) $ac_c" 1>&6 |
6770 else | 6802 else |
6771 cat > conftest.$ac_ext <<EOF | 6803 cat > conftest.$ac_ext <<EOF |
6772 #line 6773 "configure" | 6804 #line 6805 "configure" |
6773 #include "confdefs.h" | 6805 #include "confdefs.h" |
6774 #include <sys/cpustats.h> | 6806 #include <sys/cpustats.h> |
6775 EOF | 6807 EOF |
6776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6777 { (eval echo configure:6778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6809 { (eval echo configure:6810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6779 if test -z "$ac_err"; then | 6811 if test -z "$ac_err"; then |
6780 rm -rf conftest* | 6812 rm -rf conftest* |
6781 eval "ac_cv_header_$ac_safe=yes" | 6813 eval "ac_cv_header_$ac_safe=yes" |
6782 else | 6814 else |
6803 if test $ac_have_func = no; then | 6835 if test $ac_have_func = no; then |
6804 for ac_hdr in mach/mach.h | 6836 for ac_hdr in mach/mach.h |
6805 do | 6837 do |
6806 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6807 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6808 echo "configure:6809: checking for $ac_hdr" >&5 | 6840 echo "configure:6841: checking for $ac_hdr" >&5 |
6809 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6810 echo $ac_n "(cached) $ac_c" 1>&6 | 6842 echo $ac_n "(cached) $ac_c" 1>&6 |
6811 else | 6843 else |
6812 cat > conftest.$ac_ext <<EOF | 6844 cat > conftest.$ac_ext <<EOF |
6813 #line 6814 "configure" | 6845 #line 6846 "configure" |
6814 #include "confdefs.h" | 6846 #include "confdefs.h" |
6815 #include <$ac_hdr> | 6847 #include <$ac_hdr> |
6816 EOF | 6848 EOF |
6817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6818 { (eval echo configure:6819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6850 { (eval echo configure:6851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6819 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6820 if test -z "$ac_err"; then | 6852 if test -z "$ac_err"; then |
6821 rm -rf conftest* | 6853 rm -rf conftest* |
6822 eval "ac_cv_header_$ac_safe=yes" | 6854 eval "ac_cv_header_$ac_safe=yes" |
6823 else | 6855 else |
6843 | 6875 |
6844 fi | 6876 fi |
6845 | 6877 |
6846 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` | 6878 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` |
6847 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 | 6879 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 |
6848 echo "configure:6849: checking for nlist.h" >&5 | 6880 echo "configure:6881: checking for nlist.h" >&5 |
6849 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6881 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6850 echo $ac_n "(cached) $ac_c" 1>&6 | 6882 echo $ac_n "(cached) $ac_c" 1>&6 |
6851 else | 6883 else |
6852 cat > conftest.$ac_ext <<EOF | 6884 cat > conftest.$ac_ext <<EOF |
6853 #line 6854 "configure" | 6885 #line 6886 "configure" |
6854 #include "confdefs.h" | 6886 #include "confdefs.h" |
6855 #include <nlist.h> | 6887 #include <nlist.h> |
6856 EOF | 6888 EOF |
6857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6858 { (eval echo configure:6859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6890 { (eval echo configure:6891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6860 if test -z "$ac_err"; then | 6892 if test -z "$ac_err"; then |
6861 rm -rf conftest* | 6893 rm -rf conftest* |
6862 eval "ac_cv_header_$ac_safe=yes" | 6894 eval "ac_cv_header_$ac_safe=yes" |
6863 else | 6895 else |
6874 cat >> confdefs.h <<\EOF | 6906 cat >> confdefs.h <<\EOF |
6875 #define NLIST_STRUCT 1 | 6907 #define NLIST_STRUCT 1 |
6876 EOF | 6908 EOF |
6877 | 6909 |
6878 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 | 6910 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 |
6879 echo "configure:6880: checking for n_un in struct nlist" >&5 | 6911 echo "configure:6912: checking for n_un in struct nlist" >&5 |
6880 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then | 6912 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then |
6881 echo $ac_n "(cached) $ac_c" 1>&6 | 6913 echo $ac_n "(cached) $ac_c" 1>&6 |
6882 else | 6914 else |
6883 cat > conftest.$ac_ext <<EOF | 6915 cat > conftest.$ac_ext <<EOF |
6884 #line 6885 "configure" | 6916 #line 6917 "configure" |
6885 #include "confdefs.h" | 6917 #include "confdefs.h" |
6886 #include <nlist.h> | 6918 #include <nlist.h> |
6887 int main() { | 6919 int main() { |
6888 struct nlist n; n.n_un.n_name = 0; | 6920 struct nlist n; n.n_un.n_name = 0; |
6889 ; return 0; } | 6921 ; return 0; } |
6890 EOF | 6922 EOF |
6891 if { (eval echo configure:6892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6923 if { (eval echo configure:6924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6892 rm -rf conftest* | 6924 rm -rf conftest* |
6893 ac_cv_struct_nlist_n_un=yes | 6925 ac_cv_struct_nlist_n_un=yes |
6894 else | 6926 else |
6895 echo "configure: failed program was:" >&5 | 6927 echo "configure: failed program was:" >&5 |
6896 cat conftest.$ac_ext >&5 | 6928 cat conftest.$ac_ext >&5 |
6913 fi | 6945 fi |
6914 fi # Do not have getloadavg in system libraries. | 6946 fi # Do not have getloadavg in system libraries. |
6915 | 6947 |
6916 # Some definitions of getloadavg require that the program be installed setgid. | 6948 # Some definitions of getloadavg require that the program be installed setgid. |
6917 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 | 6949 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 |
6918 echo "configure:6919: checking whether getloadavg requires setgid" >&5 | 6950 echo "configure:6951: checking whether getloadavg requires setgid" >&5 |
6919 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then | 6951 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then |
6920 echo $ac_n "(cached) $ac_c" 1>&6 | 6952 echo $ac_n "(cached) $ac_c" 1>&6 |
6921 else | 6953 else |
6922 cat > conftest.$ac_ext <<EOF | 6954 cat > conftest.$ac_ext <<EOF |
6923 #line 6924 "configure" | 6955 #line 6956 "configure" |
6924 #include "confdefs.h" | 6956 #include "confdefs.h" |
6925 #include "$srcdir/getloadavg.c" | 6957 #include "$srcdir/getloadavg.c" |
6926 #ifdef LDAV_PRIVILEGED | 6958 #ifdef LDAV_PRIVILEGED |
6927 Yowza Am I SETGID yet | 6959 Yowza Am I SETGID yet |
6928 #endif | 6960 #endif |
6949 NEED_SETGID=false | 6981 NEED_SETGID=false |
6950 fi | 6982 fi |
6951 | 6983 |
6952 if test $ac_cv_func_getloadavg_setgid = yes; then | 6984 if test $ac_cv_func_getloadavg_setgid = yes; then |
6953 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 | 6985 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 |
6954 echo "configure:6955: checking group of /dev/kmem" >&5 | 6986 echo "configure:6987: checking group of /dev/kmem" >&5 |
6955 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then | 6987 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then |
6956 echo $ac_n "(cached) $ac_c" 1>&6 | 6988 echo $ac_n "(cached) $ac_c" 1>&6 |
6957 else | 6989 else |
6958 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | 6990 # On Solaris, /dev/kmem is a symlink. Get info on the real file. |
6959 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | 6991 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` |
6970 KMEM_GROUP=$ac_cv_group_kmem | 7002 KMEM_GROUP=$ac_cv_group_kmem |
6971 fi | 7003 fi |
6972 | 7004 |
6973 | 7005 |
6974 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 | 7006 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 |
6975 echo "configure:6976: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | 7007 echo "configure:7008: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
6976 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then | 7008 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then |
6977 echo $ac_n "(cached) $ac_c" 1>&6 | 7009 echo $ac_n "(cached) $ac_c" 1>&6 |
6978 else | 7010 else |
6979 ac_cv_sys_largefile_source=no | 7011 ac_cv_sys_largefile_source=no |
6980 cat > conftest.$ac_ext <<EOF | 7012 cat > conftest.$ac_ext <<EOF |
6981 #line 6982 "configure" | 7013 #line 7014 "configure" |
6982 #include "confdefs.h" | 7014 #include "confdefs.h" |
6983 #include <stdio.h> | 7015 #include <stdio.h> |
6984 int main() { | 7016 int main() { |
6985 return !fseeko; | 7017 return !fseeko; |
6986 ; return 0; } | 7018 ; return 0; } |
6987 EOF | 7019 EOF |
6988 if { (eval echo configure:6989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 7020 if { (eval echo configure:7021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6989 : | 7021 : |
6990 else | 7022 else |
6991 echo "configure: failed program was:" >&5 | 7023 echo "configure: failed program was:" >&5 |
6992 cat conftest.$ac_ext >&5 | 7024 cat conftest.$ac_ext >&5 |
6993 rm -rf conftest* | 7025 rm -rf conftest* |
6994 cat > conftest.$ac_ext <<EOF | 7026 cat > conftest.$ac_ext <<EOF |
6995 #line 6996 "configure" | 7027 #line 7028 "configure" |
6996 #include "confdefs.h" | 7028 #include "confdefs.h" |
6997 #define _LARGEFILE_SOURCE 1 | 7029 #define _LARGEFILE_SOURCE 1 |
6998 #include <stdio.h> | 7030 #include <stdio.h> |
6999 | 7031 |
7000 int main() { | 7032 int main() { |
7001 return !fseeko; | 7033 return !fseeko; |
7002 ; return 0; } | 7034 ; return 0; } |
7003 EOF | 7035 EOF |
7004 if { (eval echo configure:7005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 7036 if { (eval echo configure:7037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7005 rm -rf conftest* | 7037 rm -rf conftest* |
7006 ac_cv_sys_largefile_source=1 | 7038 ac_cv_sys_largefile_source=1 |
7007 else | 7039 else |
7008 echo "configure: failed program was:" >&5 | 7040 echo "configure: failed program was:" >&5 |
7009 cat conftest.$ac_ext >&5 | 7041 cat conftest.$ac_ext >&5 |
7023 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | 7055 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
7024 # in glibc 2.1.3, but that breaks too many other things. | 7056 # in glibc 2.1.3, but that breaks too many other things. |
7025 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | 7057 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
7026 | 7058 |
7027 echo $ac_n "checking for fseeko""... $ac_c" 1>&6 | 7059 echo $ac_n "checking for fseeko""... $ac_c" 1>&6 |
7028 echo "configure:7029: checking for fseeko" >&5 | 7060 echo "configure:7061: checking for fseeko" >&5 |
7029 if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then | 7061 if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then |
7030 echo $ac_n "(cached) $ac_c" 1>&6 | 7062 echo $ac_n "(cached) $ac_c" 1>&6 |
7031 else | 7063 else |
7032 ac_cv_func_fseeko=no | 7064 ac_cv_func_fseeko=no |
7033 cat > conftest.$ac_ext <<EOF | 7065 cat > conftest.$ac_ext <<EOF |
7034 #line 7035 "configure" | 7066 #line 7067 "configure" |
7035 #include "confdefs.h" | 7067 #include "confdefs.h" |
7036 #include <stdio.h> | 7068 #include <stdio.h> |
7037 int main() { | 7069 int main() { |
7038 return fseeko && fseeko (stdin, 0, 0); | 7070 return fseeko && fseeko (stdin, 0, 0); |
7039 ; return 0; } | 7071 ; return 0; } |
7040 EOF | 7072 EOF |
7041 if { (eval echo configure:7042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7073 if { (eval echo configure:7074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7042 rm -rf conftest* | 7074 rm -rf conftest* |
7043 ac_cv_func_fseeko=yes | 7075 ac_cv_func_fseeko=yes |
7044 else | 7076 else |
7045 echo "configure: failed program was:" >&5 | 7077 echo "configure: failed program was:" >&5 |
7046 cat conftest.$ac_ext >&5 | 7078 cat conftest.$ac_ext >&5 |
7058 | 7090 |
7059 # UNIX98 PTYs. | 7091 # UNIX98 PTYs. |
7060 for ac_func in grantpt | 7092 for ac_func in grantpt |
7061 do | 7093 do |
7062 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 7094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
7063 echo "configure:7064: checking for $ac_func" >&5 | 7095 echo "configure:7096: checking for $ac_func" >&5 |
7064 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 7096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7065 echo $ac_n "(cached) $ac_c" 1>&6 | 7097 echo $ac_n "(cached) $ac_c" 1>&6 |
7066 else | 7098 else |
7067 cat > conftest.$ac_ext <<EOF | 7099 cat > conftest.$ac_ext <<EOF |
7068 #line 7069 "configure" | 7100 #line 7101 "configure" |
7069 #include "confdefs.h" | 7101 #include "confdefs.h" |
7070 /* System header to define __stub macros and hopefully few prototypes, | 7102 /* System header to define __stub macros and hopefully few prototypes, |
7071 which can conflict with char $ac_func(); below. */ | 7103 which can conflict with char $ac_func(); below. */ |
7072 #include <assert.h> | 7104 #include <assert.h> |
7073 /* Override any gcc2 internal prototype to avoid an error. */ | 7105 /* Override any gcc2 internal prototype to avoid an error. */ |
7086 $ac_func(); | 7118 $ac_func(); |
7087 #endif | 7119 #endif |
7088 | 7120 |
7089 ; return 0; } | 7121 ; return 0; } |
7090 EOF | 7122 EOF |
7091 if { (eval echo configure:7092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7123 if { (eval echo configure:7124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7092 rm -rf conftest* | 7124 rm -rf conftest* |
7093 eval "ac_cv_func_$ac_func=yes" | 7125 eval "ac_cv_func_$ac_func=yes" |
7094 else | 7126 else |
7095 echo "configure: failed program was:" >&5 | 7127 echo "configure: failed program was:" >&5 |
7096 cat conftest.$ac_ext >&5 | 7128 cat conftest.$ac_ext >&5 |
7115 | 7147 |
7116 # PTY-related GNU extensions. | 7148 # PTY-related GNU extensions. |
7117 for ac_func in getpt | 7149 for ac_func in getpt |
7118 do | 7150 do |
7119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 7151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
7120 echo "configure:7121: checking for $ac_func" >&5 | 7152 echo "configure:7153: checking for $ac_func" >&5 |
7121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 7153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7122 echo $ac_n "(cached) $ac_c" 1>&6 | 7154 echo $ac_n "(cached) $ac_c" 1>&6 |
7123 else | 7155 else |
7124 cat > conftest.$ac_ext <<EOF | 7156 cat > conftest.$ac_ext <<EOF |
7125 #line 7126 "configure" | 7157 #line 7158 "configure" |
7126 #include "confdefs.h" | 7158 #include "confdefs.h" |
7127 /* System header to define __stub macros and hopefully few prototypes, | 7159 /* System header to define __stub macros and hopefully few prototypes, |
7128 which can conflict with char $ac_func(); below. */ | 7160 which can conflict with char $ac_func(); below. */ |
7129 #include <assert.h> | 7161 #include <assert.h> |
7130 /* Override any gcc2 internal prototype to avoid an error. */ | 7162 /* Override any gcc2 internal prototype to avoid an error. */ |
7143 $ac_func(); | 7175 $ac_func(); |
7144 #endif | 7176 #endif |
7145 | 7177 |
7146 ; return 0; } | 7178 ; return 0; } |
7147 EOF | 7179 EOF |
7148 if { (eval echo configure:7149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7180 if { (eval echo configure:7181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7149 rm -rf conftest* | 7181 rm -rf conftest* |
7150 eval "ac_cv_func_$ac_func=yes" | 7182 eval "ac_cv_func_$ac_func=yes" |
7151 else | 7183 else |
7152 echo "configure: failed program was:" >&5 | 7184 echo "configure: failed program was:" >&5 |
7153 cat conftest.$ac_ext >&5 | 7185 cat conftest.$ac_ext >&5 |
7173 # Check this now, so that we will NOT find the above functions in ncurses. | 7205 # Check this now, so that we will NOT find the above functions in ncurses. |
7174 # That is because we have not set up to link ncurses in lib-src. | 7206 # That is because we have not set up to link ncurses in lib-src. |
7175 # It's better to believe a function is not available | 7207 # It's better to believe a function is not available |
7176 # than to expect to find it in ncurses. | 7208 # than to expect to find it in ncurses. |
7177 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 | 7209 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 |
7178 echo "configure:7179: checking for tparm in -lncurses" >&5 | 7210 echo "configure:7211: checking for tparm in -lncurses" >&5 |
7179 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` | 7211 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` |
7180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7181 echo $ac_n "(cached) $ac_c" 1>&6 | 7213 echo $ac_n "(cached) $ac_c" 1>&6 |
7182 else | 7214 else |
7183 ac_save_LIBS="$LIBS" | 7215 ac_save_LIBS="$LIBS" |
7184 LIBS="-lncurses $LIBS" | 7216 LIBS="-lncurses $LIBS" |
7185 cat > conftest.$ac_ext <<EOF | 7217 cat > conftest.$ac_ext <<EOF |
7186 #line 7187 "configure" | 7218 #line 7219 "configure" |
7187 #include "confdefs.h" | 7219 #include "confdefs.h" |
7188 /* Override any gcc2 internal prototype to avoid an error. */ | 7220 /* Override any gcc2 internal prototype to avoid an error. */ |
7189 /* We use char because int might match the return type of a gcc2 | 7221 /* We use char because int might match the return type of a gcc2 |
7190 builtin and then its argument prototype would still apply. */ | 7222 builtin and then its argument prototype would still apply. */ |
7191 char tparm(); | 7223 char tparm(); |
7192 | 7224 |
7193 int main() { | 7225 int main() { |
7194 tparm() | 7226 tparm() |
7195 ; return 0; } | 7227 ; return 0; } |
7196 EOF | 7228 EOF |
7197 if { (eval echo configure:7198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7229 if { (eval echo configure:7230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7198 rm -rf conftest* | 7230 rm -rf conftest* |
7199 eval "ac_cv_lib_$ac_lib_var=yes" | 7231 eval "ac_cv_lib_$ac_lib_var=yes" |
7200 else | 7232 else |
7201 echo "configure: failed program was:" >&5 | 7233 echo "configure: failed program was:" >&5 |
7202 cat conftest.$ac_ext >&5 | 7234 cat conftest.$ac_ext >&5 |
7223 | 7255 |
7224 | 7256 |
7225 # These tell us which Kerberos-related libraries to use. | 7257 # These tell us which Kerberos-related libraries to use. |
7226 if test "${with_kerberos+set}" = set; then | 7258 if test "${with_kerberos+set}" = set; then |
7227 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 | 7259 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 |
7228 echo "configure:7229: checking for com_err in -lcom_err" >&5 | 7260 echo "configure:7261: checking for com_err in -lcom_err" >&5 |
7229 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` | 7261 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` |
7230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7262 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7231 echo $ac_n "(cached) $ac_c" 1>&6 | 7263 echo $ac_n "(cached) $ac_c" 1>&6 |
7232 else | 7264 else |
7233 ac_save_LIBS="$LIBS" | 7265 ac_save_LIBS="$LIBS" |
7234 LIBS="-lcom_err $LIBS" | 7266 LIBS="-lcom_err $LIBS" |
7235 cat > conftest.$ac_ext <<EOF | 7267 cat > conftest.$ac_ext <<EOF |
7236 #line 7237 "configure" | 7268 #line 7269 "configure" |
7237 #include "confdefs.h" | 7269 #include "confdefs.h" |
7238 /* Override any gcc2 internal prototype to avoid an error. */ | 7270 /* Override any gcc2 internal prototype to avoid an error. */ |
7239 /* We use char because int might match the return type of a gcc2 | 7271 /* We use char because int might match the return type of a gcc2 |
7240 builtin and then its argument prototype would still apply. */ | 7272 builtin and then its argument prototype would still apply. */ |
7241 char com_err(); | 7273 char com_err(); |
7242 | 7274 |
7243 int main() { | 7275 int main() { |
7244 com_err() | 7276 com_err() |
7245 ; return 0; } | 7277 ; return 0; } |
7246 EOF | 7278 EOF |
7247 if { (eval echo configure:7248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7279 if { (eval echo configure:7280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7248 rm -rf conftest* | 7280 rm -rf conftest* |
7249 eval "ac_cv_lib_$ac_lib_var=yes" | 7281 eval "ac_cv_lib_$ac_lib_var=yes" |
7250 else | 7282 else |
7251 echo "configure: failed program was:" >&5 | 7283 echo "configure: failed program was:" >&5 |
7252 cat conftest.$ac_ext >&5 | 7284 cat conftest.$ac_ext >&5 |
7270 else | 7302 else |
7271 echo "$ac_t""no" 1>&6 | 7303 echo "$ac_t""no" 1>&6 |
7272 fi | 7304 fi |
7273 | 7305 |
7274 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 | 7306 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 |
7275 echo "configure:7276: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | 7307 echo "configure:7308: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
7276 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7308 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7278 echo $ac_n "(cached) $ac_c" 1>&6 | 7310 echo $ac_n "(cached) $ac_c" 1>&6 |
7279 else | 7311 else |
7280 ac_save_LIBS="$LIBS" | 7312 ac_save_LIBS="$LIBS" |
7281 LIBS="-lk5crypto $LIBS" | 7313 LIBS="-lk5crypto $LIBS" |
7282 cat > conftest.$ac_ext <<EOF | 7314 cat > conftest.$ac_ext <<EOF |
7283 #line 7284 "configure" | 7315 #line 7316 "configure" |
7284 #include "confdefs.h" | 7316 #include "confdefs.h" |
7285 /* Override any gcc2 internal prototype to avoid an error. */ | 7317 /* Override any gcc2 internal prototype to avoid an error. */ |
7286 /* We use char because int might match the return type of a gcc2 | 7318 /* We use char because int might match the return type of a gcc2 |
7287 builtin and then its argument prototype would still apply. */ | 7319 builtin and then its argument prototype would still apply. */ |
7288 char mit_des_cbc_encrypt(); | 7320 char mit_des_cbc_encrypt(); |
7289 | 7321 |
7290 int main() { | 7322 int main() { |
7291 mit_des_cbc_encrypt() | 7323 mit_des_cbc_encrypt() |
7292 ; return 0; } | 7324 ; return 0; } |
7293 EOF | 7325 EOF |
7294 if { (eval echo configure:7295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7326 if { (eval echo configure:7327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7295 rm -rf conftest* | 7327 rm -rf conftest* |
7296 eval "ac_cv_lib_$ac_lib_var=yes" | 7328 eval "ac_cv_lib_$ac_lib_var=yes" |
7297 else | 7329 else |
7298 echo "configure: failed program was:" >&5 | 7330 echo "configure: failed program was:" >&5 |
7299 cat conftest.$ac_ext >&5 | 7331 cat conftest.$ac_ext >&5 |
7317 else | 7349 else |
7318 echo "$ac_t""no" 1>&6 | 7350 echo "$ac_t""no" 1>&6 |
7319 fi | 7351 fi |
7320 | 7352 |
7321 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 | 7353 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 |
7322 echo "configure:7323: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | 7354 echo "configure:7355: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
7323 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7355 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7325 echo $ac_n "(cached) $ac_c" 1>&6 | 7357 echo $ac_n "(cached) $ac_c" 1>&6 |
7326 else | 7358 else |
7327 ac_save_LIBS="$LIBS" | 7359 ac_save_LIBS="$LIBS" |
7328 LIBS="-lcrypto $LIBS" | 7360 LIBS="-lcrypto $LIBS" |
7329 cat > conftest.$ac_ext <<EOF | 7361 cat > conftest.$ac_ext <<EOF |
7330 #line 7331 "configure" | 7362 #line 7363 "configure" |
7331 #include "confdefs.h" | 7363 #include "confdefs.h" |
7332 /* Override any gcc2 internal prototype to avoid an error. */ | 7364 /* Override any gcc2 internal prototype to avoid an error. */ |
7333 /* We use char because int might match the return type of a gcc2 | 7365 /* We use char because int might match the return type of a gcc2 |
7334 builtin and then its argument prototype would still apply. */ | 7366 builtin and then its argument prototype would still apply. */ |
7335 char mit_des_cbc_encrypt(); | 7367 char mit_des_cbc_encrypt(); |
7336 | 7368 |
7337 int main() { | 7369 int main() { |
7338 mit_des_cbc_encrypt() | 7370 mit_des_cbc_encrypt() |
7339 ; return 0; } | 7371 ; return 0; } |
7340 EOF | 7372 EOF |
7341 if { (eval echo configure:7342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7373 if { (eval echo configure:7374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7342 rm -rf conftest* | 7374 rm -rf conftest* |
7343 eval "ac_cv_lib_$ac_lib_var=yes" | 7375 eval "ac_cv_lib_$ac_lib_var=yes" |
7344 else | 7376 else |
7345 echo "configure: failed program was:" >&5 | 7377 echo "configure: failed program was:" >&5 |
7346 cat conftest.$ac_ext >&5 | 7378 cat conftest.$ac_ext >&5 |
7364 else | 7396 else |
7365 echo "$ac_t""no" 1>&6 | 7397 echo "$ac_t""no" 1>&6 |
7366 fi | 7398 fi |
7367 | 7399 |
7368 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 | 7400 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 |
7369 echo "configure:7370: checking for krb5_init_context in -lkrb5" >&5 | 7401 echo "configure:7402: checking for krb5_init_context in -lkrb5" >&5 |
7370 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` | 7402 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` |
7371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7372 echo $ac_n "(cached) $ac_c" 1>&6 | 7404 echo $ac_n "(cached) $ac_c" 1>&6 |
7373 else | 7405 else |
7374 ac_save_LIBS="$LIBS" | 7406 ac_save_LIBS="$LIBS" |
7375 LIBS="-lkrb5 $LIBS" | 7407 LIBS="-lkrb5 $LIBS" |
7376 cat > conftest.$ac_ext <<EOF | 7408 cat > conftest.$ac_ext <<EOF |
7377 #line 7378 "configure" | 7409 #line 7410 "configure" |
7378 #include "confdefs.h" | 7410 #include "confdefs.h" |
7379 /* Override any gcc2 internal prototype to avoid an error. */ | 7411 /* Override any gcc2 internal prototype to avoid an error. */ |
7380 /* We use char because int might match the return type of a gcc2 | 7412 /* We use char because int might match the return type of a gcc2 |
7381 builtin and then its argument prototype would still apply. */ | 7413 builtin and then its argument prototype would still apply. */ |
7382 char krb5_init_context(); | 7414 char krb5_init_context(); |
7383 | 7415 |
7384 int main() { | 7416 int main() { |
7385 krb5_init_context() | 7417 krb5_init_context() |
7386 ; return 0; } | 7418 ; return 0; } |
7387 EOF | 7419 EOF |
7388 if { (eval echo configure:7389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7420 if { (eval echo configure:7421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7389 rm -rf conftest* | 7421 rm -rf conftest* |
7390 eval "ac_cv_lib_$ac_lib_var=yes" | 7422 eval "ac_cv_lib_$ac_lib_var=yes" |
7391 else | 7423 else |
7392 echo "configure: failed program was:" >&5 | 7424 echo "configure: failed program was:" >&5 |
7393 cat conftest.$ac_ext >&5 | 7425 cat conftest.$ac_ext >&5 |
7412 echo "$ac_t""no" 1>&6 | 7444 echo "$ac_t""no" 1>&6 |
7413 fi | 7445 fi |
7414 | 7446 |
7415 if test "${with_kerberos5+set}" != set; then | 7447 if test "${with_kerberos5+set}" != set; then |
7416 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 | 7448 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 |
7417 echo "configure:7418: checking for des_cbc_encrypt in -ldes425" >&5 | 7449 echo "configure:7450: checking for des_cbc_encrypt in -ldes425" >&5 |
7418 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7450 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7420 echo $ac_n "(cached) $ac_c" 1>&6 | 7452 echo $ac_n "(cached) $ac_c" 1>&6 |
7421 else | 7453 else |
7422 ac_save_LIBS="$LIBS" | 7454 ac_save_LIBS="$LIBS" |
7423 LIBS="-ldes425 $LIBS" | 7455 LIBS="-ldes425 $LIBS" |
7424 cat > conftest.$ac_ext <<EOF | 7456 cat > conftest.$ac_ext <<EOF |
7425 #line 7426 "configure" | 7457 #line 7458 "configure" |
7426 #include "confdefs.h" | 7458 #include "confdefs.h" |
7427 /* Override any gcc2 internal prototype to avoid an error. */ | 7459 /* Override any gcc2 internal prototype to avoid an error. */ |
7428 /* We use char because int might match the return type of a gcc2 | 7460 /* We use char because int might match the return type of a gcc2 |
7429 builtin and then its argument prototype would still apply. */ | 7461 builtin and then its argument prototype would still apply. */ |
7430 char des_cbc_encrypt(); | 7462 char des_cbc_encrypt(); |
7431 | 7463 |
7432 int main() { | 7464 int main() { |
7433 des_cbc_encrypt() | 7465 des_cbc_encrypt() |
7434 ; return 0; } | 7466 ; return 0; } |
7435 EOF | 7467 EOF |
7436 if { (eval echo configure:7437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7468 if { (eval echo configure:7469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7437 rm -rf conftest* | 7469 rm -rf conftest* |
7438 eval "ac_cv_lib_$ac_lib_var=yes" | 7470 eval "ac_cv_lib_$ac_lib_var=yes" |
7439 else | 7471 else |
7440 echo "configure: failed program was:" >&5 | 7472 echo "configure: failed program was:" >&5 |
7441 cat conftest.$ac_ext >&5 | 7473 cat conftest.$ac_ext >&5 |
7457 LIBS="-ldes425 $LIBS" | 7489 LIBS="-ldes425 $LIBS" |
7458 | 7490 |
7459 else | 7491 else |
7460 echo "$ac_t""no" 1>&6 | 7492 echo "$ac_t""no" 1>&6 |
7461 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 | 7493 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 |
7462 echo "configure:7463: checking for des_cbc_encrypt in -ldes" >&5 | 7494 echo "configure:7495: checking for des_cbc_encrypt in -ldes" >&5 |
7463 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7495 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7464 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7465 echo $ac_n "(cached) $ac_c" 1>&6 | 7497 echo $ac_n "(cached) $ac_c" 1>&6 |
7466 else | 7498 else |
7467 ac_save_LIBS="$LIBS" | 7499 ac_save_LIBS="$LIBS" |
7468 LIBS="-ldes $LIBS" | 7500 LIBS="-ldes $LIBS" |
7469 cat > conftest.$ac_ext <<EOF | 7501 cat > conftest.$ac_ext <<EOF |
7470 #line 7471 "configure" | 7502 #line 7503 "configure" |
7471 #include "confdefs.h" | 7503 #include "confdefs.h" |
7472 /* Override any gcc2 internal prototype to avoid an error. */ | 7504 /* Override any gcc2 internal prototype to avoid an error. */ |
7473 /* We use char because int might match the return type of a gcc2 | 7505 /* We use char because int might match the return type of a gcc2 |
7474 builtin and then its argument prototype would still apply. */ | 7506 builtin and then its argument prototype would still apply. */ |
7475 char des_cbc_encrypt(); | 7507 char des_cbc_encrypt(); |
7476 | 7508 |
7477 int main() { | 7509 int main() { |
7478 des_cbc_encrypt() | 7510 des_cbc_encrypt() |
7479 ; return 0; } | 7511 ; return 0; } |
7480 EOF | 7512 EOF |
7481 if { (eval echo configure:7482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7513 if { (eval echo configure:7514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7482 rm -rf conftest* | 7514 rm -rf conftest* |
7483 eval "ac_cv_lib_$ac_lib_var=yes" | 7515 eval "ac_cv_lib_$ac_lib_var=yes" |
7484 else | 7516 else |
7485 echo "configure: failed program was:" >&5 | 7517 echo "configure: failed program was:" >&5 |
7486 cat conftest.$ac_ext >&5 | 7518 cat conftest.$ac_ext >&5 |
7506 fi | 7538 fi |
7507 | 7539 |
7508 fi | 7540 fi |
7509 | 7541 |
7510 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 | 7542 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 |
7511 echo "configure:7512: checking for krb_get_cred in -lkrb4" >&5 | 7543 echo "configure:7544: checking for krb_get_cred in -lkrb4" >&5 |
7512 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` | 7544 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` |
7513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7514 echo $ac_n "(cached) $ac_c" 1>&6 | 7546 echo $ac_n "(cached) $ac_c" 1>&6 |
7515 else | 7547 else |
7516 ac_save_LIBS="$LIBS" | 7548 ac_save_LIBS="$LIBS" |
7517 LIBS="-lkrb4 $LIBS" | 7549 LIBS="-lkrb4 $LIBS" |
7518 cat > conftest.$ac_ext <<EOF | 7550 cat > conftest.$ac_ext <<EOF |
7519 #line 7520 "configure" | 7551 #line 7552 "configure" |
7520 #include "confdefs.h" | 7552 #include "confdefs.h" |
7521 /* Override any gcc2 internal prototype to avoid an error. */ | 7553 /* Override any gcc2 internal prototype to avoid an error. */ |
7522 /* We use char because int might match the return type of a gcc2 | 7554 /* We use char because int might match the return type of a gcc2 |
7523 builtin and then its argument prototype would still apply. */ | 7555 builtin and then its argument prototype would still apply. */ |
7524 char krb_get_cred(); | 7556 char krb_get_cred(); |
7525 | 7557 |
7526 int main() { | 7558 int main() { |
7527 krb_get_cred() | 7559 krb_get_cred() |
7528 ; return 0; } | 7560 ; return 0; } |
7529 EOF | 7561 EOF |
7530 if { (eval echo configure:7531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7562 if { (eval echo configure:7563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7531 rm -rf conftest* | 7563 rm -rf conftest* |
7532 eval "ac_cv_lib_$ac_lib_var=yes" | 7564 eval "ac_cv_lib_$ac_lib_var=yes" |
7533 else | 7565 else |
7534 echo "configure: failed program was:" >&5 | 7566 echo "configure: failed program was:" >&5 |
7535 cat conftest.$ac_ext >&5 | 7567 cat conftest.$ac_ext >&5 |
7551 LIBS="-lkrb4 $LIBS" | 7583 LIBS="-lkrb4 $LIBS" |
7552 | 7584 |
7553 else | 7585 else |
7554 echo "$ac_t""no" 1>&6 | 7586 echo "$ac_t""no" 1>&6 |
7555 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 | 7587 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 |
7556 echo "configure:7557: checking for krb_get_cred in -lkrb" >&5 | 7588 echo "configure:7589: checking for krb_get_cred in -lkrb" >&5 |
7557 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` | 7589 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` |
7558 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7559 echo $ac_n "(cached) $ac_c" 1>&6 | 7591 echo $ac_n "(cached) $ac_c" 1>&6 |
7560 else | 7592 else |
7561 ac_save_LIBS="$LIBS" | 7593 ac_save_LIBS="$LIBS" |
7562 LIBS="-lkrb $LIBS" | 7594 LIBS="-lkrb $LIBS" |
7563 cat > conftest.$ac_ext <<EOF | 7595 cat > conftest.$ac_ext <<EOF |
7564 #line 7565 "configure" | 7596 #line 7597 "configure" |
7565 #include "confdefs.h" | 7597 #include "confdefs.h" |
7566 /* Override any gcc2 internal prototype to avoid an error. */ | 7598 /* Override any gcc2 internal prototype to avoid an error. */ |
7567 /* We use char because int might match the return type of a gcc2 | 7599 /* We use char because int might match the return type of a gcc2 |
7568 builtin and then its argument prototype would still apply. */ | 7600 builtin and then its argument prototype would still apply. */ |
7569 char krb_get_cred(); | 7601 char krb_get_cred(); |
7570 | 7602 |
7571 int main() { | 7603 int main() { |
7572 krb_get_cred() | 7604 krb_get_cred() |
7573 ; return 0; } | 7605 ; return 0; } |
7574 EOF | 7606 EOF |
7575 if { (eval echo configure:7576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7607 if { (eval echo configure:7608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7576 rm -rf conftest* | 7608 rm -rf conftest* |
7577 eval "ac_cv_lib_$ac_lib_var=yes" | 7609 eval "ac_cv_lib_$ac_lib_var=yes" |
7578 else | 7610 else |
7579 echo "configure: failed program was:" >&5 | 7611 echo "configure: failed program was:" >&5 |
7580 cat conftest.$ac_ext >&5 | 7612 cat conftest.$ac_ext >&5 |
7606 if test "${with_kerberos5+set}" = set; then | 7638 if test "${with_kerberos5+set}" = set; then |
7607 for ac_hdr in krb5.h | 7639 for ac_hdr in krb5.h |
7608 do | 7640 do |
7609 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7610 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7611 echo "configure:7612: checking for $ac_hdr" >&5 | 7643 echo "configure:7644: checking for $ac_hdr" >&5 |
7612 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7613 echo $ac_n "(cached) $ac_c" 1>&6 | 7645 echo $ac_n "(cached) $ac_c" 1>&6 |
7614 else | 7646 else |
7615 cat > conftest.$ac_ext <<EOF | 7647 cat > conftest.$ac_ext <<EOF |
7616 #line 7617 "configure" | 7648 #line 7649 "configure" |
7617 #include "confdefs.h" | 7649 #include "confdefs.h" |
7618 #include <$ac_hdr> | 7650 #include <$ac_hdr> |
7619 EOF | 7651 EOF |
7620 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7621 { (eval echo configure:7622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7653 { (eval echo configure:7654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7622 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7623 if test -z "$ac_err"; then | 7655 if test -z "$ac_err"; then |
7624 rm -rf conftest* | 7656 rm -rf conftest* |
7625 eval "ac_cv_header_$ac_safe=yes" | 7657 eval "ac_cv_header_$ac_safe=yes" |
7626 else | 7658 else |
7647 else | 7679 else |
7648 for ac_hdr in des.h | 7680 for ac_hdr in des.h |
7649 do | 7681 do |
7650 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7651 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7652 echo "configure:7653: checking for $ac_hdr" >&5 | 7684 echo "configure:7685: checking for $ac_hdr" >&5 |
7653 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7654 echo $ac_n "(cached) $ac_c" 1>&6 | 7686 echo $ac_n "(cached) $ac_c" 1>&6 |
7655 else | 7687 else |
7656 cat > conftest.$ac_ext <<EOF | 7688 cat > conftest.$ac_ext <<EOF |
7657 #line 7658 "configure" | 7689 #line 7690 "configure" |
7658 #include "confdefs.h" | 7690 #include "confdefs.h" |
7659 #include <$ac_hdr> | 7691 #include <$ac_hdr> |
7660 EOF | 7692 EOF |
7661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7662 { (eval echo configure:7663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7694 { (eval echo configure:7695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7664 if test -z "$ac_err"; then | 7696 if test -z "$ac_err"; then |
7665 rm -rf conftest* | 7697 rm -rf conftest* |
7666 eval "ac_cv_header_$ac_safe=yes" | 7698 eval "ac_cv_header_$ac_safe=yes" |
7667 else | 7699 else |
7684 echo "$ac_t""no" 1>&6 | 7716 echo "$ac_t""no" 1>&6 |
7685 for ac_hdr in kerberosIV/des.h | 7717 for ac_hdr in kerberosIV/des.h |
7686 do | 7718 do |
7687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7719 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7720 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7689 echo "configure:7690: checking for $ac_hdr" >&5 | 7721 echo "configure:7722: checking for $ac_hdr" >&5 |
7690 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7722 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7691 echo $ac_n "(cached) $ac_c" 1>&6 | 7723 echo $ac_n "(cached) $ac_c" 1>&6 |
7692 else | 7724 else |
7693 cat > conftest.$ac_ext <<EOF | 7725 cat > conftest.$ac_ext <<EOF |
7694 #line 7695 "configure" | 7726 #line 7727 "configure" |
7695 #include "confdefs.h" | 7727 #include "confdefs.h" |
7696 #include <$ac_hdr> | 7728 #include <$ac_hdr> |
7697 EOF | 7729 EOF |
7698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7699 { (eval echo configure:7700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7731 { (eval echo configure:7732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7701 if test -z "$ac_err"; then | 7733 if test -z "$ac_err"; then |
7702 rm -rf conftest* | 7734 rm -rf conftest* |
7703 eval "ac_cv_header_$ac_safe=yes" | 7735 eval "ac_cv_header_$ac_safe=yes" |
7704 else | 7736 else |
7721 echo "$ac_t""no" 1>&6 | 7753 echo "$ac_t""no" 1>&6 |
7722 for ac_hdr in kerberos/des.h | 7754 for ac_hdr in kerberos/des.h |
7723 do | 7755 do |
7724 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7756 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7726 echo "configure:7727: checking for $ac_hdr" >&5 | 7758 echo "configure:7759: checking for $ac_hdr" >&5 |
7727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7728 echo $ac_n "(cached) $ac_c" 1>&6 | 7760 echo $ac_n "(cached) $ac_c" 1>&6 |
7729 else | 7761 else |
7730 cat > conftest.$ac_ext <<EOF | 7762 cat > conftest.$ac_ext <<EOF |
7731 #line 7732 "configure" | 7763 #line 7764 "configure" |
7732 #include "confdefs.h" | 7764 #include "confdefs.h" |
7733 #include <$ac_hdr> | 7765 #include <$ac_hdr> |
7734 EOF | 7766 EOF |
7735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7736 { (eval echo configure:7737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7768 { (eval echo configure:7769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7738 if test -z "$ac_err"; then | 7770 if test -z "$ac_err"; then |
7739 rm -rf conftest* | 7771 rm -rf conftest* |
7740 eval "ac_cv_header_$ac_safe=yes" | 7772 eval "ac_cv_header_$ac_safe=yes" |
7741 else | 7773 else |
7767 | 7799 |
7768 for ac_hdr in krb.h | 7800 for ac_hdr in krb.h |
7769 do | 7801 do |
7770 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7802 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7771 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7803 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7772 echo "configure:7773: checking for $ac_hdr" >&5 | 7804 echo "configure:7805: checking for $ac_hdr" >&5 |
7773 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7774 echo $ac_n "(cached) $ac_c" 1>&6 | 7806 echo $ac_n "(cached) $ac_c" 1>&6 |
7775 else | 7807 else |
7776 cat > conftest.$ac_ext <<EOF | 7808 cat > conftest.$ac_ext <<EOF |
7777 #line 7778 "configure" | 7809 #line 7810 "configure" |
7778 #include "confdefs.h" | 7810 #include "confdefs.h" |
7779 #include <$ac_hdr> | 7811 #include <$ac_hdr> |
7780 EOF | 7812 EOF |
7781 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7782 { (eval echo configure:7783: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7814 { (eval echo configure:7815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7783 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7815 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7784 if test -z "$ac_err"; then | 7816 if test -z "$ac_err"; then |
7785 rm -rf conftest* | 7817 rm -rf conftest* |
7786 eval "ac_cv_header_$ac_safe=yes" | 7818 eval "ac_cv_header_$ac_safe=yes" |
7787 else | 7819 else |
7804 echo "$ac_t""no" 1>&6 | 7836 echo "$ac_t""no" 1>&6 |
7805 for ac_hdr in kerberosIV/krb.h | 7837 for ac_hdr in kerberosIV/krb.h |
7806 do | 7838 do |
7807 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7839 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7840 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7809 echo "configure:7810: checking for $ac_hdr" >&5 | 7841 echo "configure:7842: checking for $ac_hdr" >&5 |
7810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7842 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7811 echo $ac_n "(cached) $ac_c" 1>&6 | 7843 echo $ac_n "(cached) $ac_c" 1>&6 |
7812 else | 7844 else |
7813 cat > conftest.$ac_ext <<EOF | 7845 cat > conftest.$ac_ext <<EOF |
7814 #line 7815 "configure" | 7846 #line 7847 "configure" |
7815 #include "confdefs.h" | 7847 #include "confdefs.h" |
7816 #include <$ac_hdr> | 7848 #include <$ac_hdr> |
7817 EOF | 7849 EOF |
7818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7819 { (eval echo configure:7820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7851 { (eval echo configure:7852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7820 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7821 if test -z "$ac_err"; then | 7853 if test -z "$ac_err"; then |
7822 rm -rf conftest* | 7854 rm -rf conftest* |
7823 eval "ac_cv_header_$ac_safe=yes" | 7855 eval "ac_cv_header_$ac_safe=yes" |
7824 else | 7856 else |
7841 echo "$ac_t""no" 1>&6 | 7873 echo "$ac_t""no" 1>&6 |
7842 for ac_hdr in kerberos/krb.h | 7874 for ac_hdr in kerberos/krb.h |
7843 do | 7875 do |
7844 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7876 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7845 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7877 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7846 echo "configure:7847: checking for $ac_hdr" >&5 | 7878 echo "configure:7879: checking for $ac_hdr" >&5 |
7847 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7879 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7848 echo $ac_n "(cached) $ac_c" 1>&6 | 7880 echo $ac_n "(cached) $ac_c" 1>&6 |
7849 else | 7881 else |
7850 cat > conftest.$ac_ext <<EOF | 7882 cat > conftest.$ac_ext <<EOF |
7851 #line 7852 "configure" | 7883 #line 7884 "configure" |
7852 #include "confdefs.h" | 7884 #include "confdefs.h" |
7853 #include <$ac_hdr> | 7885 #include <$ac_hdr> |
7854 EOF | 7886 EOF |
7855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7856 { (eval echo configure:7857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7888 { (eval echo configure:7889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7858 if test -z "$ac_err"; then | 7890 if test -z "$ac_err"; then |
7859 rm -rf conftest* | 7891 rm -rf conftest* |
7860 eval "ac_cv_header_$ac_safe=yes" | 7892 eval "ac_cv_header_$ac_safe=yes" |
7861 else | 7893 else |
7888 fi | 7920 fi |
7889 for ac_hdr in com_err.h | 7921 for ac_hdr in com_err.h |
7890 do | 7922 do |
7891 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7923 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7892 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7924 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7893 echo "configure:7894: checking for $ac_hdr" >&5 | 7925 echo "configure:7926: checking for $ac_hdr" >&5 |
7894 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7926 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7895 echo $ac_n "(cached) $ac_c" 1>&6 | 7927 echo $ac_n "(cached) $ac_c" 1>&6 |
7896 else | 7928 else |
7897 cat > conftest.$ac_ext <<EOF | 7929 cat > conftest.$ac_ext <<EOF |
7898 #line 7899 "configure" | 7930 #line 7931 "configure" |
7899 #include "confdefs.h" | 7931 #include "confdefs.h" |
7900 #include <$ac_hdr> | 7932 #include <$ac_hdr> |
7901 EOF | 7933 EOF |
7902 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7903 { (eval echo configure:7904: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7935 { (eval echo configure:7936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7904 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7905 if test -z "$ac_err"; then | 7937 if test -z "$ac_err"; then |
7906 rm -rf conftest* | 7938 rm -rf conftest* |
7907 eval "ac_cv_header_$ac_safe=yes" | 7939 eval "ac_cv_header_$ac_safe=yes" |
7908 else | 7940 else |
7929 fi | 7961 fi |
7930 | 7962 |
7931 # Solaris requires -lintl if you want strerror (which calls dgettext) | 7963 # Solaris requires -lintl if you want strerror (which calls dgettext) |
7932 # to return localized messages. | 7964 # to return localized messages. |
7933 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 | 7965 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 |
7934 echo "configure:7935: checking for dgettext in -lintl" >&5 | 7966 echo "configure:7967: checking for dgettext in -lintl" >&5 |
7935 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` | 7967 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` |
7936 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7937 echo $ac_n "(cached) $ac_c" 1>&6 | 7969 echo $ac_n "(cached) $ac_c" 1>&6 |
7938 else | 7970 else |
7939 ac_save_LIBS="$LIBS" | 7971 ac_save_LIBS="$LIBS" |
7940 LIBS="-lintl $LIBS" | 7972 LIBS="-lintl $LIBS" |
7941 cat > conftest.$ac_ext <<EOF | 7973 cat > conftest.$ac_ext <<EOF |
7942 #line 7943 "configure" | 7974 #line 7975 "configure" |
7943 #include "confdefs.h" | 7975 #include "confdefs.h" |
7944 /* Override any gcc2 internal prototype to avoid an error. */ | 7976 /* Override any gcc2 internal prototype to avoid an error. */ |
7945 /* We use char because int might match the return type of a gcc2 | 7977 /* We use char because int might match the return type of a gcc2 |
7946 builtin and then its argument prototype would still apply. */ | 7978 builtin and then its argument prototype would still apply. */ |
7947 char dgettext(); | 7979 char dgettext(); |
7948 | 7980 |
7949 int main() { | 7981 int main() { |
7950 dgettext() | 7982 dgettext() |
7951 ; return 0; } | 7983 ; return 0; } |
7952 EOF | 7984 EOF |
7953 if { (eval echo configure:7954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7985 if { (eval echo configure:7986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7954 rm -rf conftest* | 7986 rm -rf conftest* |
7955 eval "ac_cv_lib_$ac_lib_var=yes" | 7987 eval "ac_cv_lib_$ac_lib_var=yes" |
7956 else | 7988 else |
7957 echo "configure: failed program was:" >&5 | 7989 echo "configure: failed program was:" >&5 |
7958 cat conftest.$ac_ext >&5 | 7990 cat conftest.$ac_ext >&5 |
7977 echo "$ac_t""no" 1>&6 | 8009 echo "$ac_t""no" 1>&6 |
7978 fi | 8010 fi |
7979 | 8011 |
7980 | 8012 |
7981 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | 8013 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 |
7982 echo "configure:7983: checking whether localtime caches TZ" >&5 | 8014 echo "configure:8015: checking whether localtime caches TZ" >&5 |
7983 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then | 8015 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then |
7984 echo $ac_n "(cached) $ac_c" 1>&6 | 8016 echo $ac_n "(cached) $ac_c" 1>&6 |
7985 else | 8017 else |
7986 if test x$ac_cv_func_tzset = xyes; then | 8018 if test x$ac_cv_func_tzset = xyes; then |
7987 if test "$cross_compiling" = yes; then | 8019 if test "$cross_compiling" = yes; then |
7988 # If we have tzset, assume the worst when cross-compiling. | 8020 # If we have tzset, assume the worst when cross-compiling. |
7989 emacs_cv_localtime_cache=yes | 8021 emacs_cv_localtime_cache=yes |
7990 else | 8022 else |
7991 cat > conftest.$ac_ext <<EOF | 8023 cat > conftest.$ac_ext <<EOF |
7992 #line 7993 "configure" | 8024 #line 8025 "configure" |
7993 #include "confdefs.h" | 8025 #include "confdefs.h" |
7994 #include <time.h> | 8026 #include <time.h> |
7995 extern char **environ; | 8027 extern char **environ; |
7996 unset_TZ () | 8028 unset_TZ () |
7997 { | 8029 { |
8019 if (localtime (&now)->tm_hour != hour_unset) | 8051 if (localtime (&now)->tm_hour != hour_unset) |
8020 exit (1); | 8052 exit (1); |
8021 exit (0); | 8053 exit (0); |
8022 } | 8054 } |
8023 EOF | 8055 EOF |
8024 if { (eval echo configure:8025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 8056 if { (eval echo configure:8057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8025 then | 8057 then |
8026 emacs_cv_localtime_cache=no | 8058 emacs_cv_localtime_cache=no |
8027 else | 8059 else |
8028 echo "configure: failed program was:" >&5 | 8060 echo "configure: failed program was:" >&5 |
8029 cat conftest.$ac_ext >&5 | 8061 cat conftest.$ac_ext >&5 |
8049 | 8081 |
8050 if test "x$HAVE_TIMEVAL" = xyes; then | 8082 if test "x$HAVE_TIMEVAL" = xyes; then |
8051 for ac_func in gettimeofday | 8083 for ac_func in gettimeofday |
8052 do | 8084 do |
8053 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 8085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8054 echo "configure:8055: checking for $ac_func" >&5 | 8086 echo "configure:8087: checking for $ac_func" >&5 |
8055 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 8087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8056 echo $ac_n "(cached) $ac_c" 1>&6 | 8088 echo $ac_n "(cached) $ac_c" 1>&6 |
8057 else | 8089 else |
8058 cat > conftest.$ac_ext <<EOF | 8090 cat > conftest.$ac_ext <<EOF |
8059 #line 8060 "configure" | 8091 #line 8092 "configure" |
8060 #include "confdefs.h" | 8092 #include "confdefs.h" |
8061 /* System header to define __stub macros and hopefully few prototypes, | 8093 /* System header to define __stub macros and hopefully few prototypes, |
8062 which can conflict with char $ac_func(); below. */ | 8094 which can conflict with char $ac_func(); below. */ |
8063 #include <assert.h> | 8095 #include <assert.h> |
8064 /* Override any gcc2 internal prototype to avoid an error. */ | 8096 /* Override any gcc2 internal prototype to avoid an error. */ |
8077 $ac_func(); | 8109 $ac_func(); |
8078 #endif | 8110 #endif |
8079 | 8111 |
8080 ; return 0; } | 8112 ; return 0; } |
8081 EOF | 8113 EOF |
8082 if { (eval echo configure:8083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8114 if { (eval echo configure:8115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8083 rm -rf conftest* | 8115 rm -rf conftest* |
8084 eval "ac_cv_func_$ac_func=yes" | 8116 eval "ac_cv_func_$ac_func=yes" |
8085 else | 8117 else |
8086 echo "configure: failed program was:" >&5 | 8118 echo "configure: failed program was:" >&5 |
8087 cat conftest.$ac_ext >&5 | 8119 cat conftest.$ac_ext >&5 |
8102 echo "$ac_t""no" 1>&6 | 8134 echo "$ac_t""no" 1>&6 |
8103 fi | 8135 fi |
8104 done | 8136 done |
8105 | 8137 |
8106 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 | 8138 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 |
8107 echo "configure:8108: checking whether gettimeofday can accept two arguments" >&5 | 8139 echo "configure:8140: checking whether gettimeofday can accept two arguments" >&5 |
8108 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then | 8140 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then |
8109 echo $ac_n "(cached) $ac_c" 1>&6 | 8141 echo $ac_n "(cached) $ac_c" 1>&6 |
8110 else | 8142 else |
8111 cat > conftest.$ac_ext <<EOF | 8143 cat > conftest.$ac_ext <<EOF |
8112 #line 8113 "configure" | 8144 #line 8145 "configure" |
8113 #include "confdefs.h" | 8145 #include "confdefs.h" |
8114 | 8146 |
8115 #ifdef TIME_WITH_SYS_TIME | 8147 #ifdef TIME_WITH_SYS_TIME |
8116 #include <sys/time.h> | 8148 #include <sys/time.h> |
8117 #include <time.h> | 8149 #include <time.h> |
8125 int main() { | 8157 int main() { |
8126 struct timeval time; | 8158 struct timeval time; |
8127 gettimeofday (&time, 0); | 8159 gettimeofday (&time, 0); |
8128 ; return 0; } | 8160 ; return 0; } |
8129 EOF | 8161 EOF |
8130 if { (eval echo configure:8131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 8162 if { (eval echo configure:8163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8131 rm -rf conftest* | 8163 rm -rf conftest* |
8132 emacs_cv_gettimeofday_two_arguments=yes | 8164 emacs_cv_gettimeofday_two_arguments=yes |
8133 else | 8165 else |
8134 echo "configure: failed program was:" >&5 | 8166 echo "configure: failed program was:" >&5 |
8135 cat conftest.$ac_ext >&5 | 8167 cat conftest.$ac_ext >&5 |
8148 fi | 8180 fi |
8149 fi | 8181 fi |
8150 | 8182 |
8151 if test "$ac_cv_func_gettimeofday" = yes; then | 8183 if test "$ac_cv_func_gettimeofday" = yes; then |
8152 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 | 8184 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 |
8153 echo "configure:8154: checking for struct timezone" >&5 | 8185 echo "configure:8186: checking for struct timezone" >&5 |
8154 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then | 8186 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then |
8155 echo $ac_n "(cached) $ac_c" 1>&6 | 8187 echo $ac_n "(cached) $ac_c" 1>&6 |
8156 else | 8188 else |
8157 cat > conftest.$ac_ext <<EOF | 8189 cat > conftest.$ac_ext <<EOF |
8158 #line 8159 "configure" | 8190 #line 8191 "configure" |
8159 #include "confdefs.h" | 8191 #include "confdefs.h" |
8160 #include <sys/time.h> | 8192 #include <sys/time.h> |
8161 int main() { | 8193 int main() { |
8162 struct timezone tz; | 8194 struct timezone tz; |
8163 ; return 0; } | 8195 ; return 0; } |
8164 EOF | 8196 EOF |
8165 if { (eval echo configure:8166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 8197 if { (eval echo configure:8198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8166 rm -rf conftest* | 8198 rm -rf conftest* |
8167 if test "$cross_compiling" = yes; then | 8199 if test "$cross_compiling" = yes; then |
8168 emacs_cv_struct_timezone=yes | 8200 emacs_cv_struct_timezone=yes |
8169 else | 8201 else |
8170 cat > conftest.$ac_ext <<EOF | 8202 cat > conftest.$ac_ext <<EOF |
8171 #line 8172 "configure" | 8203 #line 8204 "configure" |
8172 #include "confdefs.h" | 8204 #include "confdefs.h" |
8173 | 8205 |
8174 #ifdef TIME_WITH_SYS_TIME | 8206 #ifdef TIME_WITH_SYS_TIME |
8175 #include <sys/time.h> | 8207 #include <sys/time.h> |
8176 #include <time.h> | 8208 #include <time.h> |
8185 struct timeval time; | 8217 struct timeval time; |
8186 struct timezone dummy; | 8218 struct timezone dummy; |
8187 exit (gettimeofday (&time, &dummy)); | 8219 exit (gettimeofday (&time, &dummy)); |
8188 } | 8220 } |
8189 EOF | 8221 EOF |
8190 if { (eval echo configure:8191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 8222 if { (eval echo configure:8223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8191 then | 8223 then |
8192 emacs_cv_struct_timezone=yes | 8224 emacs_cv_struct_timezone=yes |
8193 else | 8225 else |
8194 echo "configure: failed program was:" >&5 | 8226 echo "configure: failed program was:" >&5 |
8195 cat conftest.$ac_ext >&5 | 8227 cat conftest.$ac_ext >&5 |
8211 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 | 8243 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 |
8212 fi | 8244 fi |
8213 | 8245 |
8214 ok_so_far=yes | 8246 ok_so_far=yes |
8215 echo $ac_n "checking for socket""... $ac_c" 1>&6 | 8247 echo $ac_n "checking for socket""... $ac_c" 1>&6 |
8216 echo "configure:8217: checking for socket" >&5 | 8248 echo "configure:8249: checking for socket" >&5 |
8217 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then | 8249 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
8218 echo $ac_n "(cached) $ac_c" 1>&6 | 8250 echo $ac_n "(cached) $ac_c" 1>&6 |
8219 else | 8251 else |
8220 cat > conftest.$ac_ext <<EOF | 8252 cat > conftest.$ac_ext <<EOF |
8221 #line 8222 "configure" | 8253 #line 8254 "configure" |
8222 #include "confdefs.h" | 8254 #include "confdefs.h" |
8223 /* System header to define __stub macros and hopefully few prototypes, | 8255 /* System header to define __stub macros and hopefully few prototypes, |
8224 which can conflict with char socket(); below. */ | 8256 which can conflict with char socket(); below. */ |
8225 #include <assert.h> | 8257 #include <assert.h> |
8226 /* Override any gcc2 internal prototype to avoid an error. */ | 8258 /* Override any gcc2 internal prototype to avoid an error. */ |
8239 socket(); | 8271 socket(); |
8240 #endif | 8272 #endif |
8241 | 8273 |
8242 ; return 0; } | 8274 ; return 0; } |
8243 EOF | 8275 EOF |
8244 if { (eval echo configure:8245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8276 if { (eval echo configure:8277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8245 rm -rf conftest* | 8277 rm -rf conftest* |
8246 eval "ac_cv_func_socket=yes" | 8278 eval "ac_cv_func_socket=yes" |
8247 else | 8279 else |
8248 echo "configure: failed program was:" >&5 | 8280 echo "configure: failed program was:" >&5 |
8249 cat conftest.$ac_ext >&5 | 8281 cat conftest.$ac_ext >&5 |
8262 fi | 8294 fi |
8263 | 8295 |
8264 if test $ok_so_far = yes; then | 8296 if test $ok_so_far = yes; then |
8265 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | 8297 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` |
8266 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | 8298 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 |
8267 echo "configure:8268: checking for netinet/in.h" >&5 | 8299 echo "configure:8300: checking for netinet/in.h" >&5 |
8268 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 8300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8269 echo $ac_n "(cached) $ac_c" 1>&6 | 8301 echo $ac_n "(cached) $ac_c" 1>&6 |
8270 else | 8302 else |
8271 cat > conftest.$ac_ext <<EOF | 8303 cat > conftest.$ac_ext <<EOF |
8272 #line 8273 "configure" | 8304 #line 8305 "configure" |
8273 #include "confdefs.h" | 8305 #include "confdefs.h" |
8274 #include <netinet/in.h> | 8306 #include <netinet/in.h> |
8275 EOF | 8307 EOF |
8276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8277 { (eval echo configure:8278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8309 { (eval echo configure:8310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 8310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8279 if test -z "$ac_err"; then | 8311 if test -z "$ac_err"; then |
8280 rm -rf conftest* | 8312 rm -rf conftest* |
8281 eval "ac_cv_header_$ac_safe=yes" | 8313 eval "ac_cv_header_$ac_safe=yes" |
8282 else | 8314 else |
8298 | 8330 |
8299 fi | 8331 fi |
8300 if test $ok_so_far = yes; then | 8332 if test $ok_so_far = yes; then |
8301 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | 8333 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` |
8302 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | 8334 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 |
8303 echo "configure:8304: checking for arpa/inet.h" >&5 | 8335 echo "configure:8336: checking for arpa/inet.h" >&5 |
8304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 8336 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8305 echo $ac_n "(cached) $ac_c" 1>&6 | 8337 echo $ac_n "(cached) $ac_c" 1>&6 |
8306 else | 8338 else |
8307 cat > conftest.$ac_ext <<EOF | 8339 cat > conftest.$ac_ext <<EOF |
8308 #line 8309 "configure" | 8340 #line 8341 "configure" |
8309 #include "confdefs.h" | 8341 #include "confdefs.h" |
8310 #include <arpa/inet.h> | 8342 #include <arpa/inet.h> |
8311 EOF | 8343 EOF |
8312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8313 { (eval echo configure:8314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8345 { (eval echo configure:8346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 8346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8315 if test -z "$ac_err"; then | 8347 if test -z "$ac_err"; then |
8316 rm -rf conftest* | 8348 rm -rf conftest* |
8317 eval "ac_cv_header_$ac_safe=yes" | 8349 eval "ac_cv_header_$ac_safe=yes" |
8318 else | 8350 else |
8346 EOF | 8378 EOF |
8347 | 8379 |
8348 fi | 8380 fi |
8349 | 8381 |
8350 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 | 8382 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 |
8351 echo "configure:8352: checking whether system supports dynamic ptys" >&5 | 8383 echo "configure:8384: checking whether system supports dynamic ptys" >&5 |
8352 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then | 8384 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
8353 echo "$ac_t""yes" 1>&6 | 8385 echo "$ac_t""yes" 1>&6 |
8354 cat >> confdefs.h <<\EOF | 8386 cat >> confdefs.h <<\EOF |
8355 #define HAVE_DEV_PTMX 1 | 8387 #define HAVE_DEV_PTMX 1 |
8356 EOF | 8388 EOF |
8358 else | 8390 else |
8359 echo "$ac_t""no" 1>&6 | 8391 echo "$ac_t""no" 1>&6 |
8360 fi | 8392 fi |
8361 | 8393 |
8362 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | 8394 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
8363 echo "configure:8364: checking for pid_t" >&5 | 8395 echo "configure:8396: checking for pid_t" >&5 |
8364 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | 8396 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
8365 echo $ac_n "(cached) $ac_c" 1>&6 | 8397 echo $ac_n "(cached) $ac_c" 1>&6 |
8366 else | 8398 else |
8367 cat > conftest.$ac_ext <<EOF | 8399 cat > conftest.$ac_ext <<EOF |
8368 #line 8369 "configure" | 8400 #line 8401 "configure" |
8369 #include "confdefs.h" | 8401 #include "confdefs.h" |
8370 #include <sys/types.h> | 8402 #include <sys/types.h> |
8371 #if STDC_HEADERS | 8403 #if STDC_HEADERS |
8372 #include <stdlib.h> | 8404 #include <stdlib.h> |
8373 #include <stddef.h> | 8405 #include <stddef.h> |
8392 | 8424 |
8393 fi | 8425 fi |
8394 | 8426 |
8395 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | 8427 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` |
8396 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | 8428 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 |
8397 echo "configure:8398: checking for vfork.h" >&5 | 8429 echo "configure:8430: checking for vfork.h" >&5 |
8398 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 8430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8399 echo $ac_n "(cached) $ac_c" 1>&6 | 8431 echo $ac_n "(cached) $ac_c" 1>&6 |
8400 else | 8432 else |
8401 cat > conftest.$ac_ext <<EOF | 8433 cat > conftest.$ac_ext <<EOF |
8402 #line 8403 "configure" | 8434 #line 8435 "configure" |
8403 #include "confdefs.h" | 8435 #include "confdefs.h" |
8404 #include <vfork.h> | 8436 #include <vfork.h> |
8405 EOF | 8437 EOF |
8406 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8407 { (eval echo configure:8408: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8439 { (eval echo configure:8440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8408 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 8440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8409 if test -z "$ac_err"; then | 8441 if test -z "$ac_err"; then |
8410 rm -rf conftest* | 8442 rm -rf conftest* |
8411 eval "ac_cv_header_$ac_safe=yes" | 8443 eval "ac_cv_header_$ac_safe=yes" |
8412 else | 8444 else |
8427 else | 8459 else |
8428 echo "$ac_t""no" 1>&6 | 8460 echo "$ac_t""no" 1>&6 |
8429 fi | 8461 fi |
8430 | 8462 |
8431 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | 8463 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 |
8432 echo "configure:8433: checking for working vfork" >&5 | 8464 echo "configure:8465: checking for working vfork" >&5 |
8433 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then | 8465 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
8434 echo $ac_n "(cached) $ac_c" 1>&6 | 8466 echo $ac_n "(cached) $ac_c" 1>&6 |
8435 else | 8467 else |
8436 if test "$cross_compiling" = yes; then | 8468 if test "$cross_compiling" = yes; then |
8437 echo $ac_n "checking for vfork""... $ac_c" 1>&6 | 8469 echo $ac_n "checking for vfork""... $ac_c" 1>&6 |
8438 echo "configure:8439: checking for vfork" >&5 | 8470 echo "configure:8471: checking for vfork" >&5 |
8439 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then | 8471 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
8440 echo $ac_n "(cached) $ac_c" 1>&6 | 8472 echo $ac_n "(cached) $ac_c" 1>&6 |
8441 else | 8473 else |
8442 cat > conftest.$ac_ext <<EOF | 8474 cat > conftest.$ac_ext <<EOF |
8443 #line 8444 "configure" | 8475 #line 8476 "configure" |
8444 #include "confdefs.h" | 8476 #include "confdefs.h" |
8445 /* System header to define __stub macros and hopefully few prototypes, | 8477 /* System header to define __stub macros and hopefully few prototypes, |
8446 which can conflict with char vfork(); below. */ | 8478 which can conflict with char vfork(); below. */ |
8447 #include <assert.h> | 8479 #include <assert.h> |
8448 /* Override any gcc2 internal prototype to avoid an error. */ | 8480 /* Override any gcc2 internal prototype to avoid an error. */ |
8461 vfork(); | 8493 vfork(); |
8462 #endif | 8494 #endif |
8463 | 8495 |
8464 ; return 0; } | 8496 ; return 0; } |
8465 EOF | 8497 EOF |
8466 if { (eval echo configure:8467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8498 if { (eval echo configure:8499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8467 rm -rf conftest* | 8499 rm -rf conftest* |
8468 eval "ac_cv_func_vfork=yes" | 8500 eval "ac_cv_func_vfork=yes" |
8469 else | 8501 else |
8470 echo "configure: failed program was:" >&5 | 8502 echo "configure: failed program was:" >&5 |
8471 cat conftest.$ac_ext >&5 | 8503 cat conftest.$ac_ext >&5 |
8483 fi | 8515 fi |
8484 | 8516 |
8485 ac_cv_func_vfork_works=$ac_cv_func_vfork | 8517 ac_cv_func_vfork_works=$ac_cv_func_vfork |
8486 else | 8518 else |
8487 cat > conftest.$ac_ext <<EOF | 8519 cat > conftest.$ac_ext <<EOF |
8488 #line 8489 "configure" | 8520 #line 8521 "configure" |
8489 #include "confdefs.h" | 8521 #include "confdefs.h" |
8490 /* Thanks to Paul Eggert for this test. */ | 8522 /* Thanks to Paul Eggert for this test. */ |
8491 #include <stdio.h> | 8523 #include <stdio.h> |
8492 #include <sys/types.h> | 8524 #include <sys/types.h> |
8493 #include <sys/stat.h> | 8525 #include <sys/stat.h> |
8578 || fstat(fileno(stdout), &st) != 0 | 8610 || fstat(fileno(stdout), &st) != 0 |
8579 ); | 8611 ); |
8580 } | 8612 } |
8581 } | 8613 } |
8582 EOF | 8614 EOF |
8583 if { (eval echo configure:8584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null | 8615 if { (eval echo configure:8616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8584 then | 8616 then |
8585 ac_cv_func_vfork_works=yes | 8617 ac_cv_func_vfork_works=yes |
8586 else | 8618 else |
8587 echo "configure: failed program was:" >&5 | 8619 echo "configure: failed program was:" >&5 |
8588 cat conftest.$ac_ext >&5 | 8620 cat conftest.$ac_ext >&5 |
8603 fi | 8635 fi |
8604 | 8636 |
8605 | 8637 |
8606 # Fixme: This should be replaced when we have autoconf 2.14. | 8638 # Fixme: This should be replaced when we have autoconf 2.14. |
8607 echo $ac_n "checking for size_t""... $ac_c" 1>&6 | 8639 echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
8608 echo "configure:8609: checking for size_t" >&5 | 8640 echo "configure:8641: checking for size_t" >&5 |
8609 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | 8641 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
8610 echo $ac_n "(cached) $ac_c" 1>&6 | 8642 echo $ac_n "(cached) $ac_c" 1>&6 |
8611 else | 8643 else |
8612 cat > conftest.$ac_ext <<EOF | 8644 cat > conftest.$ac_ext <<EOF |
8613 #line 8614 "configure" | 8645 #line 8646 "configure" |
8614 #include "confdefs.h" | 8646 #include "confdefs.h" |
8615 #include <sys/types.h> | 8647 #include <sys/types.h> |
8616 #if STDC_HEADERS | 8648 #if STDC_HEADERS |
8617 #include <stdlib.h> | 8649 #include <stdlib.h> |
8618 #include <stddef.h> | 8650 #include <stddef.h> |