Mercurial > emacs
comparison configure @ 35206:054acbd5e9f7
*** empty log message ***
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Wed, 10 Jan 2001 15:24:55 +0000 |
parents | eb8cfdc5cabf |
children | b85d466802a5 |
comparison
equal
deleted
inserted
replaced
35205:7132f10900a7 | 35206:054acbd5e9f7 |
---|---|
4547 cat conftest.$ac_ext >&5 | 4547 cat conftest.$ac_ext >&5 |
4548 rm -rf conftest* | 4548 rm -rf conftest* |
4549 emacs_xkb=no | 4549 emacs_xkb=no |
4550 fi | 4550 fi |
4551 rm -f conftest* | 4551 rm -f conftest* |
4552 echo $ac_n "checking $emacs_xkb""... $ac_c" 1>&6 | 4552 echo "$ac_t""$emacs_xkb" 1>&6 |
4553 echo "configure:4554: checking $emacs_xkb" >&5 | |
4554 if test $emacs_xkb = yes; then | 4553 if test $emacs_xkb = yes; then |
4555 cat >> confdefs.h <<\EOF | 4554 cat >> confdefs.h <<\EOF |
4556 #define HAVE_XKBGETKEYBOARD 1 | 4555 #define HAVE_XKBGETKEYBOARD 1 |
4557 EOF | 4556 EOF |
4558 | 4557 |
4560 | 4559 |
4561 for ac_func in XrmSetDatabase XScreenResourceString \ | 4560 for ac_func in XrmSetDatabase XScreenResourceString \ |
4562 XScreenNumberOfScreen XSetWMProtocols | 4561 XScreenNumberOfScreen XSetWMProtocols |
4563 do | 4562 do |
4564 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 4563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
4565 echo "configure:4566: checking for $ac_func" >&5 | 4564 echo "configure:4565: checking for $ac_func" >&5 |
4566 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 4565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
4567 echo $ac_n "(cached) $ac_c" 1>&6 | 4566 echo $ac_n "(cached) $ac_c" 1>&6 |
4568 else | 4567 else |
4569 cat > conftest.$ac_ext <<EOF | 4568 cat > conftest.$ac_ext <<EOF |
4570 #line 4571 "configure" | 4569 #line 4570 "configure" |
4571 #include "confdefs.h" | 4570 #include "confdefs.h" |
4572 /* System header to define __stub macros and hopefully few prototypes, | 4571 /* System header to define __stub macros and hopefully few prototypes, |
4573 which can conflict with char $ac_func(); below. */ | 4572 which can conflict with char $ac_func(); below. */ |
4574 #include <assert.h> | 4573 #include <assert.h> |
4575 /* Override any gcc2 internal prototype to avoid an error. */ | 4574 /* Override any gcc2 internal prototype to avoid an error. */ |
4588 $ac_func(); | 4587 $ac_func(); |
4589 #endif | 4588 #endif |
4590 | 4589 |
4591 ; return 0; } | 4590 ; return 0; } |
4592 EOF | 4591 EOF |
4593 if { (eval echo configure:4594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4592 if { (eval echo configure:4593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4594 rm -rf conftest* | 4593 rm -rf conftest* |
4595 eval "ac_cv_func_$ac_func=yes" | 4594 eval "ac_cv_func_$ac_func=yes" |
4596 else | 4595 else |
4597 echo "configure: failed program was:" >&5 | 4596 echo "configure: failed program was:" >&5 |
4598 cat conftest.$ac_ext >&5 | 4597 cat conftest.$ac_ext >&5 |
4616 | 4615 |
4617 fi | 4616 fi |
4618 | 4617 |
4619 if test "${window_system}" = "x11"; then | 4618 if test "${window_system}" = "x11"; then |
4620 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 | 4619 echo $ac_n "checking X11 version 6""... $ac_c" 1>&6 |
4621 echo "configure:4622: checking X11 version 6" >&5 | 4620 echo "configure:4621: checking X11 version 6" >&5 |
4622 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then | 4621 if eval "test \"`echo '$''{'emacs_cv_x11_version_6'+set}'`\" = set"; then |
4623 echo $ac_n "(cached) $ac_c" 1>&6 | 4622 echo $ac_n "(cached) $ac_c" 1>&6 |
4624 else | 4623 else |
4625 cat > conftest.$ac_ext <<EOF | 4624 cat > conftest.$ac_ext <<EOF |
4626 #line 4627 "configure" | 4625 #line 4626 "configure" |
4627 #include "confdefs.h" | 4626 #include "confdefs.h" |
4628 #include <X11/Xlib.h> | 4627 #include <X11/Xlib.h> |
4629 int main() { | 4628 int main() { |
4630 #if XlibSpecificationRelease < 6 | 4629 #if XlibSpecificationRelease < 6 |
4631 fail; | 4630 fail; |
4632 #endif | 4631 #endif |
4633 | 4632 |
4634 ; return 0; } | 4633 ; return 0; } |
4635 EOF | 4634 EOF |
4636 if { (eval echo configure:4637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4635 if { (eval echo configure:4636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4637 rm -rf conftest* | 4636 rm -rf conftest* |
4638 emacs_cv_x11_version_6=yes | 4637 emacs_cv_x11_version_6=yes |
4639 else | 4638 else |
4640 echo "configure: failed program was:" >&5 | 4639 echo "configure: failed program was:" >&5 |
4641 cat conftest.$ac_ext >&5 | 4640 cat conftest.$ac_ext >&5 |
4656 fi | 4655 fi |
4657 fi | 4656 fi |
4658 | 4657 |
4659 if test "${window_system}" = "x11"; then | 4658 if test "${window_system}" = "x11"; then |
4660 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 | 4659 echo $ac_n "checking X11 version 5""... $ac_c" 1>&6 |
4661 echo "configure:4662: checking X11 version 5" >&5 | 4660 echo "configure:4661: checking X11 version 5" >&5 |
4662 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then | 4661 if eval "test \"`echo '$''{'emacs_cv_x11_version_5'+set}'`\" = set"; then |
4663 echo $ac_n "(cached) $ac_c" 1>&6 | 4662 echo $ac_n "(cached) $ac_c" 1>&6 |
4664 else | 4663 else |
4665 cat > conftest.$ac_ext <<EOF | 4664 cat > conftest.$ac_ext <<EOF |
4666 #line 4667 "configure" | 4665 #line 4666 "configure" |
4667 #include "confdefs.h" | 4666 #include "confdefs.h" |
4668 #include <X11/Xlib.h> | 4667 #include <X11/Xlib.h> |
4669 int main() { | 4668 int main() { |
4670 #if XlibSpecificationRelease < 5 | 4669 #if XlibSpecificationRelease < 5 |
4671 fail; | 4670 fail; |
4672 #endif | 4671 #endif |
4673 | 4672 |
4674 ; return 0; } | 4673 ; return 0; } |
4675 EOF | 4674 EOF |
4676 if { (eval echo configure:4677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4677 rm -rf conftest* | 4676 rm -rf conftest* |
4678 emacs_cv_x11_version_5=yes | 4677 emacs_cv_x11_version_5=yes |
4679 else | 4678 else |
4680 echo "configure: failed program was:" >&5 | 4679 echo "configure: failed program was:" >&5 |
4681 cat conftest.$ac_ext >&5 | 4680 cat conftest.$ac_ext >&5 |
4699 fi | 4698 fi |
4700 | 4699 |
4701 if test x"${USE_X_TOOLKIT}" = xmaybe; then | 4700 if test x"${USE_X_TOOLKIT}" = xmaybe; then |
4702 if test x"${HAVE_X11R5}" = xyes; then | 4701 if test x"${HAVE_X11R5}" = xyes; then |
4703 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 | 4702 echo $ac_n "checking X11 version 5 with Xaw""... $ac_c" 1>&6 |
4704 echo "configure:4705: checking X11 version 5 with Xaw" >&5 | 4703 echo "configure:4704: checking X11 version 5 with Xaw" >&5 |
4705 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then | 4704 if eval "test \"`echo '$''{'emacs_cv_x11_version_5_with_xaw'+set}'`\" = set"; then |
4706 echo $ac_n "(cached) $ac_c" 1>&6 | 4705 echo $ac_n "(cached) $ac_c" 1>&6 |
4707 else | 4706 else |
4708 cat > conftest.$ac_ext <<EOF | 4707 cat > conftest.$ac_ext <<EOF |
4709 #line 4710 "configure" | 4708 #line 4709 "configure" |
4710 #include "confdefs.h" | 4709 #include "confdefs.h" |
4711 | 4710 |
4712 #include <X11/Intrinsic.h> | 4711 #include <X11/Intrinsic.h> |
4713 #include <X11/Xaw/Simple.h> | 4712 #include <X11/Xaw/Simple.h> |
4714 int main() { | 4713 int main() { |
4715 | 4714 |
4716 ; return 0; } | 4715 ; return 0; } |
4717 EOF | 4716 EOF |
4718 if { (eval echo configure:4719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4717 if { (eval echo configure:4718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4719 rm -rf conftest* | 4718 rm -rf conftest* |
4720 emacs_cv_x11_version_5_with_xaw=yes | 4719 emacs_cv_x11_version_5_with_xaw=yes |
4721 else | 4720 else |
4722 echo "configure: failed program was:" >&5 | 4721 echo "configure: failed program was:" >&5 |
4723 cat conftest.$ac_ext >&5 | 4722 cat conftest.$ac_ext >&5 |
4741 | 4740 |
4742 X_TOOLKIT_TYPE=$USE_X_TOOLKIT | 4741 X_TOOLKIT_TYPE=$USE_X_TOOLKIT |
4743 | 4742 |
4744 if test "${USE_X_TOOLKIT}" != "none"; then | 4743 if test "${USE_X_TOOLKIT}" != "none"; then |
4745 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 | 4744 echo $ac_n "checking X11 toolkit version""... $ac_c" 1>&6 |
4746 echo "configure:4747: checking X11 toolkit version" >&5 | 4745 echo "configure:4746: checking X11 toolkit version" >&5 |
4747 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then | 4746 if eval "test \"`echo '$''{'emacs_cv_x11_toolkit_version_6'+set}'`\" = set"; then |
4748 echo $ac_n "(cached) $ac_c" 1>&6 | 4747 echo $ac_n "(cached) $ac_c" 1>&6 |
4749 else | 4748 else |
4750 cat > conftest.$ac_ext <<EOF | 4749 cat > conftest.$ac_ext <<EOF |
4751 #line 4752 "configure" | 4750 #line 4751 "configure" |
4752 #include "confdefs.h" | 4751 #include "confdefs.h" |
4753 #include <X11/Intrinsic.h> | 4752 #include <X11/Intrinsic.h> |
4754 int main() { | 4753 int main() { |
4755 #if XtSpecificationRelease < 6 | 4754 #if XtSpecificationRelease < 6 |
4756 fail; | 4755 fail; |
4757 #endif | 4756 #endif |
4758 | 4757 |
4759 ; return 0; } | 4758 ; return 0; } |
4760 EOF | 4759 EOF |
4761 if { (eval echo configure:4762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4760 if { (eval echo configure:4761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4762 rm -rf conftest* | 4761 rm -rf conftest* |
4763 emacs_cv_x11_toolkit_version_6=yes | 4762 emacs_cv_x11_toolkit_version_6=yes |
4764 else | 4763 else |
4765 echo "configure: failed program was:" >&5 | 4764 echo "configure: failed program was:" >&5 |
4766 cat conftest.$ac_ext >&5 | 4765 cat conftest.$ac_ext >&5 |
4786 LIBS="-lXt -lSM -lICE $LIBS" | 4785 LIBS="-lXt -lSM -lICE $LIBS" |
4787 else | 4786 else |
4788 LIBS="-lXt $LIBS" | 4787 LIBS="-lXt $LIBS" |
4789 fi | 4788 fi |
4790 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 | 4789 echo $ac_n "checking for XmuConvertStandardSelection in -lXmu""... $ac_c" 1>&6 |
4791 echo "configure:4792: checking for XmuConvertStandardSelection in -lXmu" >&5 | 4790 echo "configure:4791: checking for XmuConvertStandardSelection in -lXmu" >&5 |
4792 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` | 4791 ac_lib_var=`echo Xmu'_'XmuConvertStandardSelection | sed 'y%./+-%__p_%'` |
4793 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4794 echo $ac_n "(cached) $ac_c" 1>&6 | 4793 echo $ac_n "(cached) $ac_c" 1>&6 |
4795 else | 4794 else |
4796 ac_save_LIBS="$LIBS" | 4795 ac_save_LIBS="$LIBS" |
4797 LIBS="-lXmu $LIBS" | 4796 LIBS="-lXmu $LIBS" |
4798 cat > conftest.$ac_ext <<EOF | 4797 cat > conftest.$ac_ext <<EOF |
4799 #line 4800 "configure" | 4798 #line 4799 "configure" |
4800 #include "confdefs.h" | 4799 #include "confdefs.h" |
4801 /* Override any gcc2 internal prototype to avoid an error. */ | 4800 /* Override any gcc2 internal prototype to avoid an error. */ |
4802 /* We use char because int might match the return type of a gcc2 | 4801 /* We use char because int might match the return type of a gcc2 |
4803 builtin and then its argument prototype would still apply. */ | 4802 builtin and then its argument prototype would still apply. */ |
4804 char XmuConvertStandardSelection(); | 4803 char XmuConvertStandardSelection(); |
4805 | 4804 |
4806 int main() { | 4805 int main() { |
4807 XmuConvertStandardSelection() | 4806 XmuConvertStandardSelection() |
4808 ; return 0; } | 4807 ; return 0; } |
4809 EOF | 4808 EOF |
4810 if { (eval echo configure:4811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4809 if { (eval echo configure:4810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4811 rm -rf conftest* | 4810 rm -rf conftest* |
4812 eval "ac_cv_lib_$ac_lib_var=yes" | 4811 eval "ac_cv_lib_$ac_lib_var=yes" |
4813 else | 4812 else |
4814 echo "configure: failed program was:" >&5 | 4813 echo "configure: failed program was:" >&5 |
4815 cat conftest.$ac_ext >&5 | 4814 cat conftest.$ac_ext >&5 |
4832 | 4831 |
4833 else | 4832 else |
4834 echo "$ac_t""no" 1>&6 | 4833 echo "$ac_t""no" 1>&6 |
4835 fi | 4834 fi |
4836 | 4835 |
4837 LIBS="$OLDLIBS" | 4836 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" |
4837 fi | |
4838 | |
4839 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. | |
4840 if test "${HAVE_X11}" = "yes"; then | |
4841 if test "${USE_X_TOOLKIT}" != "none"; then | |
4842 echo $ac_n "checking for XShapeQueryExtension in -lXext""... $ac_c" 1>&6 | |
4843 echo "configure:4844: checking for XShapeQueryExtension in -lXext" >&5 | |
4844 ac_lib_var=`echo Xext'_'XShapeQueryExtension | sed 'y%./+-%__p_%'` | |
4845 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
4846 echo $ac_n "(cached) $ac_c" 1>&6 | |
4847 else | |
4848 ac_save_LIBS="$LIBS" | |
4849 LIBS="-lXext $LIBS" | |
4850 cat > conftest.$ac_ext <<EOF | |
4851 #line 4852 "configure" | |
4852 #include "confdefs.h" | |
4853 /* Override any gcc2 internal prototype to avoid an error. */ | |
4854 /* We use char because int might match the return type of a gcc2 | |
4855 builtin and then its argument prototype would still apply. */ | |
4856 char XShapeQueryExtension(); | |
4857 | |
4858 int main() { | |
4859 XShapeQueryExtension() | |
4860 ; return 0; } | |
4861 EOF | |
4862 if { (eval echo configure:4863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | |
4863 rm -rf conftest* | |
4864 eval "ac_cv_lib_$ac_lib_var=yes" | |
4865 else | |
4866 echo "configure: failed program was:" >&5 | |
4867 cat conftest.$ac_ext >&5 | |
4868 rm -rf conftest* | |
4869 eval "ac_cv_lib_$ac_lib_var=no" | |
4870 fi | |
4871 rm -f conftest* | |
4872 LIBS="$ac_save_LIBS" | |
4873 | |
4874 fi | |
4875 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
4876 echo "$ac_t""yes" 1>&6 | |
4877 ac_tr_lib=HAVE_LIB`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \ | |
4878 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` | |
4879 cat >> confdefs.h <<EOF | |
4880 #define $ac_tr_lib 1 | |
4881 EOF | |
4882 | |
4883 LIBS="-lXext $LIBS" | |
4884 | |
4885 else | |
4886 echo "$ac_t""no" 1>&6 | |
4887 fi | |
4888 | |
4889 fi | |
4838 fi | 4890 fi |
4839 | 4891 |
4840 if test "${USE_X_TOOLKIT}" = "MOTIF"; then | 4892 if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
4841 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 | 4893 echo $ac_n "checking for Motif version 2.1""... $ac_c" 1>&6 |
4842 echo "configure:4843: checking for Motif version 2.1" >&5 | 4894 echo "configure:4895: checking for Motif version 2.1" >&5 |
4843 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then | 4895 if eval "test \"`echo '$''{'emacs_cv_motif_version_2_1'+set}'`\" = set"; then |
4844 echo $ac_n "(cached) $ac_c" 1>&6 | 4896 echo $ac_n "(cached) $ac_c" 1>&6 |
4845 else | 4897 else |
4846 cat > conftest.$ac_ext <<EOF | 4898 cat > conftest.$ac_ext <<EOF |
4847 #line 4848 "configure" | 4899 #line 4900 "configure" |
4848 #include "confdefs.h" | 4900 #include "confdefs.h" |
4849 #include <Xm/Xm.h> | 4901 #include <Xm/Xm.h> |
4850 int main() { | 4902 int main() { |
4851 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) | 4903 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
4852 int x = 5; | 4904 int x = 5; |
4853 #else | 4905 #else |
4854 Motif version prior to 2.1. | 4906 Motif version prior to 2.1. |
4855 #endif | 4907 #endif |
4856 ; return 0; } | 4908 ; return 0; } |
4857 EOF | 4909 EOF |
4858 if { (eval echo configure:4859: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 4910 if { (eval echo configure:4911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
4859 rm -rf conftest* | 4911 rm -rf conftest* |
4860 emacs_cv_motif_version_2_1=yes | 4912 emacs_cv_motif_version_2_1=yes |
4861 else | 4913 else |
4862 echo "configure: failed program was:" >&5 | 4914 echo "configure: failed program was:" >&5 |
4863 cat conftest.$ac_ext >&5 | 4915 cat conftest.$ac_ext >&5 |
4874 cat >> confdefs.h <<\EOF | 4926 cat >> confdefs.h <<\EOF |
4875 #define HAVE_MOTIF_2_1 1 | 4927 #define HAVE_MOTIF_2_1 1 |
4876 EOF | 4928 EOF |
4877 | 4929 |
4878 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 | 4930 echo $ac_n "checking for XpCreateContext in -lXp""... $ac_c" 1>&6 |
4879 echo "configure:4880: checking for XpCreateContext in -lXp" >&5 | 4931 echo "configure:4932: checking for XpCreateContext in -lXp" >&5 |
4880 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` | 4932 ac_lib_var=`echo Xp'_'XpCreateContext | sed 'y%./+-%__p_%'` |
4881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 4933 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4882 echo $ac_n "(cached) $ac_c" 1>&6 | 4934 echo $ac_n "(cached) $ac_c" 1>&6 |
4883 else | 4935 else |
4884 ac_save_LIBS="$LIBS" | 4936 ac_save_LIBS="$LIBS" |
4885 LIBS="-lXp -lXext $LIBS" | 4937 LIBS="-lXp $LIBS" |
4886 cat > conftest.$ac_ext <<EOF | 4938 cat > conftest.$ac_ext <<EOF |
4887 #line 4888 "configure" | 4939 #line 4940 "configure" |
4888 #include "confdefs.h" | 4940 #include "confdefs.h" |
4889 /* Override any gcc2 internal prototype to avoid an error. */ | 4941 /* Override any gcc2 internal prototype to avoid an error. */ |
4890 /* We use char because int might match the return type of a gcc2 | 4942 /* We use char because int might match the return type of a gcc2 |
4891 builtin and then its argument prototype would still apply. */ | 4943 builtin and then its argument prototype would still apply. */ |
4892 char XpCreateContext(); | 4944 char XpCreateContext(); |
4893 | 4945 |
4894 int main() { | 4946 int main() { |
4895 XpCreateContext() | 4947 XpCreateContext() |
4896 ; return 0; } | 4948 ; return 0; } |
4897 EOF | 4949 EOF |
4898 if { (eval echo configure:4899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 4950 if { (eval echo configure:4951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4899 rm -rf conftest* | 4951 rm -rf conftest* |
4900 eval "ac_cv_lib_$ac_lib_var=yes" | 4952 eval "ac_cv_lib_$ac_lib_var=yes" |
4901 else | 4953 else |
4902 echo "configure: failed program was:" >&5 | 4954 echo "configure: failed program was:" >&5 |
4903 cat conftest.$ac_ext >&5 | 4955 cat conftest.$ac_ext >&5 |
4926 | 4978 |
4927 ### Is -lXaw3d available? | 4979 ### Is -lXaw3d available? |
4928 HAVE_XAW3D=no | 4980 HAVE_XAW3D=no |
4929 if test "${HAVE_X11}" = "yes"; then | 4981 if test "${HAVE_X11}" = "yes"; then |
4930 if test "${USE_X_TOOLKIT}" != "none"; then | 4982 if test "${USE_X_TOOLKIT}" != "none"; then |
4931 old_c_flags="${CFLAGS}" | |
4932 CFLAGS="${LD_SWITCH_X_SITE}" | |
4933 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` | 4983 ac_safe=`echo "X11/Xaw3d/Scrollbar.h" | sed 'y%./+-%__p_%'` |
4934 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 | 4984 echo $ac_n "checking for X11/Xaw3d/Scrollbar.h""... $ac_c" 1>&6 |
4935 echo "configure:4936: checking for X11/Xaw3d/Scrollbar.h" >&5 | 4985 echo "configure:4986: checking for X11/Xaw3d/Scrollbar.h" >&5 |
4936 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 4986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
4937 echo $ac_n "(cached) $ac_c" 1>&6 | 4987 echo $ac_n "(cached) $ac_c" 1>&6 |
4938 else | 4988 else |
4939 cat > conftest.$ac_ext <<EOF | 4989 cat > conftest.$ac_ext <<EOF |
4940 #line 4941 "configure" | 4990 #line 4991 "configure" |
4941 #include "confdefs.h" | 4991 #include "confdefs.h" |
4942 #include <X11/Xaw3d/Scrollbar.h> | 4992 #include <X11/Xaw3d/Scrollbar.h> |
4943 EOF | 4993 EOF |
4944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 4994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
4945 { (eval echo configure:4946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 4995 { (eval echo configure:4996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
4946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 4996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
4947 if test -z "$ac_err"; then | 4997 if test -z "$ac_err"; then |
4948 rm -rf conftest* | 4998 rm -rf conftest* |
4949 eval "ac_cv_header_$ac_safe=yes" | 4999 eval "ac_cv_header_$ac_safe=yes" |
4950 else | 5000 else |
4957 rm -f conftest* | 5007 rm -f conftest* |
4958 fi | 5008 fi |
4959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
4960 echo "$ac_t""yes" 1>&6 | 5010 echo "$ac_t""yes" 1>&6 |
4961 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 | 5011 echo $ac_n "checking for XawScrollbarSetThumb in -lXaw3d""... $ac_c" 1>&6 |
4962 echo "configure:4963: checking for XawScrollbarSetThumb in -lXaw3d" >&5 | 5012 echo "configure:5013: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
4963 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` | 5013 ac_lib_var=`echo Xaw3d'_'XawScrollbarSetThumb | sed 'y%./+-%__p_%'` |
4964 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5014 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
4965 echo $ac_n "(cached) $ac_c" 1>&6 | 5015 echo $ac_n "(cached) $ac_c" 1>&6 |
4966 else | 5016 else |
4967 ac_save_LIBS="$LIBS" | 5017 ac_save_LIBS="$LIBS" |
4968 LIBS="-lXaw3d -lX11 $LIBS" | 5018 LIBS="-lXaw3d $LIBS" |
4969 cat > conftest.$ac_ext <<EOF | 5019 cat > conftest.$ac_ext <<EOF |
4970 #line 4971 "configure" | 5020 #line 5021 "configure" |
4971 #include "confdefs.h" | 5021 #include "confdefs.h" |
4972 /* Override any gcc2 internal prototype to avoid an error. */ | 5022 /* Override any gcc2 internal prototype to avoid an error. */ |
4973 /* We use char because int might match the return type of a gcc2 | 5023 /* We use char because int might match the return type of a gcc2 |
4974 builtin and then its argument prototype would still apply. */ | 5024 builtin and then its argument prototype would still apply. */ |
4975 char XawScrollbarSetThumb(); | 5025 char XawScrollbarSetThumb(); |
4976 | 5026 |
4977 int main() { | 5027 int main() { |
4978 XawScrollbarSetThumb() | 5028 XawScrollbarSetThumb() |
4979 ; return 0; } | 5029 ; return 0; } |
4980 EOF | 5030 EOF |
4981 if { (eval echo configure:4982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5031 if { (eval echo configure:5032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
4982 rm -rf conftest* | 5032 rm -rf conftest* |
4983 eval "ac_cv_lib_$ac_lib_var=yes" | 5033 eval "ac_cv_lib_$ac_lib_var=yes" |
4984 else | 5034 else |
4985 echo "configure: failed program was:" >&5 | 5035 echo "configure: failed program was:" >&5 |
4986 cat conftest.$ac_ext >&5 | 5036 cat conftest.$ac_ext >&5 |
4999 fi | 5049 fi |
5000 | 5050 |
5001 else | 5051 else |
5002 echo "$ac_t""no" 1>&6 | 5052 echo "$ac_t""no" 1>&6 |
5003 fi | 5053 fi |
5004 | |
5005 CFLAGS="${old_c_flags}" | |
5006 | 5054 |
5007 if test "${HAVE_XAW3D}" = "yes"; then | 5055 if test "${HAVE_XAW3D}" = "yes"; then |
5008 cat >> confdefs.h <<\EOF | 5056 cat >> confdefs.h <<\EOF |
5009 #define HAVE_XAW3D 1 | 5057 #define HAVE_XAW3D 1 |
5010 EOF | 5058 EOF |
5044 | 5092 |
5045 ### Use -lXpm if available, unless `--with-xpm=no'. | 5093 ### Use -lXpm if available, unless `--with-xpm=no'. |
5046 HAVE_XPM=no | 5094 HAVE_XPM=no |
5047 if test "${HAVE_X11}" = "yes"; then | 5095 if test "${HAVE_X11}" = "yes"; then |
5048 if test "${with_xpm}" != "no"; then | 5096 if test "${with_xpm}" != "no"; then |
5049 old_c_flags="${CFLAGS}" | |
5050 CFLAGS="${LD_SWITCH_X_SITE}" | |
5051 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` | 5097 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'` |
5052 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 | 5098 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6 |
5053 echo "configure:5054: checking for X11/xpm.h" >&5 | 5099 echo "configure:5100: checking for X11/xpm.h" >&5 |
5054 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5100 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5055 echo $ac_n "(cached) $ac_c" 1>&6 | 5101 echo $ac_n "(cached) $ac_c" 1>&6 |
5056 else | 5102 else |
5057 cat > conftest.$ac_ext <<EOF | 5103 cat > conftest.$ac_ext <<EOF |
5058 #line 5059 "configure" | 5104 #line 5105 "configure" |
5059 #include "confdefs.h" | 5105 #include "confdefs.h" |
5060 #include <X11/xpm.h> | 5106 #include <X11/xpm.h> |
5061 EOF | 5107 EOF |
5062 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5108 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5063 { (eval echo configure:5064: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5109 { (eval echo configure:5110: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5064 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5110 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5065 if test -z "$ac_err"; then | 5111 if test -z "$ac_err"; then |
5066 rm -rf conftest* | 5112 rm -rf conftest* |
5067 eval "ac_cv_header_$ac_safe=yes" | 5113 eval "ac_cv_header_$ac_safe=yes" |
5068 else | 5114 else |
5075 rm -f conftest* | 5121 rm -f conftest* |
5076 fi | 5122 fi |
5077 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5123 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5078 echo "$ac_t""yes" 1>&6 | 5124 echo "$ac_t""yes" 1>&6 |
5079 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 | 5125 echo $ac_n "checking for XpmReadFileToPixmap in -lXpm""... $ac_c" 1>&6 |
5080 echo "configure:5081: checking for XpmReadFileToPixmap in -lXpm" >&5 | 5126 echo "configure:5127: checking for XpmReadFileToPixmap in -lXpm" >&5 |
5081 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` | 5127 ac_lib_var=`echo Xpm'_'XpmReadFileToPixmap | sed 'y%./+-%__p_%'` |
5082 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5083 echo $ac_n "(cached) $ac_c" 1>&6 | 5129 echo $ac_n "(cached) $ac_c" 1>&6 |
5084 else | 5130 else |
5085 ac_save_LIBS="$LIBS" | 5131 ac_save_LIBS="$LIBS" |
5086 LIBS="-lXpm -lX11 $LIBS" | 5132 LIBS="-lXpm -lX11 $LIBS" |
5087 cat > conftest.$ac_ext <<EOF | 5133 cat > conftest.$ac_ext <<EOF |
5088 #line 5089 "configure" | 5134 #line 5135 "configure" |
5089 #include "confdefs.h" | 5135 #include "confdefs.h" |
5090 /* Override any gcc2 internal prototype to avoid an error. */ | 5136 /* Override any gcc2 internal prototype to avoid an error. */ |
5091 /* We use char because int might match the return type of a gcc2 | 5137 /* We use char because int might match the return type of a gcc2 |
5092 builtin and then its argument prototype would still apply. */ | 5138 builtin and then its argument prototype would still apply. */ |
5093 char XpmReadFileToPixmap(); | 5139 char XpmReadFileToPixmap(); |
5094 | 5140 |
5095 int main() { | 5141 int main() { |
5096 XpmReadFileToPixmap() | 5142 XpmReadFileToPixmap() |
5097 ; return 0; } | 5143 ; return 0; } |
5098 EOF | 5144 EOF |
5099 if { (eval echo configure:5100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5145 if { (eval echo configure:5146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5100 rm -rf conftest* | 5146 rm -rf conftest* |
5101 eval "ac_cv_lib_$ac_lib_var=yes" | 5147 eval "ac_cv_lib_$ac_lib_var=yes" |
5102 else | 5148 else |
5103 echo "configure: failed program was:" >&5 | 5149 echo "configure: failed program was:" >&5 |
5104 cat conftest.$ac_ext >&5 | 5150 cat conftest.$ac_ext >&5 |
5120 echo "$ac_t""no" 1>&6 | 5166 echo "$ac_t""no" 1>&6 |
5121 fi | 5167 fi |
5122 | 5168 |
5123 if test "${HAVE_XPM}" = "yes"; then | 5169 if test "${HAVE_XPM}" = "yes"; then |
5124 echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6 | 5170 echo $ac_n "checking for XpmReturnAllocPixels preprocessor define""... $ac_c" 1>&6 |
5125 echo "configure:5126: checking for XpmReturnAllocPixels preprocessor define" >&5 | 5171 echo "configure:5172: checking for XpmReturnAllocPixels preprocessor define" >&5 |
5126 cat > conftest.$ac_ext <<EOF | 5172 cat > conftest.$ac_ext <<EOF |
5127 #line 5128 "configure" | 5173 #line 5174 "configure" |
5128 #include "confdefs.h" | 5174 #include "confdefs.h" |
5129 #include "X11/xpm.h" | 5175 #include "X11/xpm.h" |
5130 #ifndef XpmReturnAllocPixels | 5176 #ifndef XpmReturnAllocPixels |
5131 no_return_alloc_pixels | 5177 no_return_alloc_pixels |
5132 #endif | 5178 #endif |
5141 HAVE_XPM=yes | 5187 HAVE_XPM=yes |
5142 fi | 5188 fi |
5143 rm -f conftest* | 5189 rm -f conftest* |
5144 | 5190 |
5145 fi | 5191 fi |
5146 CFLAGS="${old_c_flags}" | |
5147 if test "${HAVE_XPM}" = "yes"; then | 5192 if test "${HAVE_XPM}" = "yes"; then |
5148 echo "$ac_t""yes" 1>&6 | 5193 echo "$ac_t""yes" 1>&6 |
5149 else | 5194 else |
5150 echo "$ac_t""no" 1>&6 | 5195 echo "$ac_t""no" 1>&6 |
5151 fi | 5196 fi |
5161 | 5206 |
5162 ### Use -ljpeg if available, unless `--with-jpeg=no'. | 5207 ### Use -ljpeg if available, unless `--with-jpeg=no'. |
5163 HAVE_JPEG=no | 5208 HAVE_JPEG=no |
5164 if test "${HAVE_X11}" = "yes"; then | 5209 if test "${HAVE_X11}" = "yes"; then |
5165 if test "${with_jpeg}" != "no"; then | 5210 if test "${with_jpeg}" != "no"; then |
5166 old_c_flags="${CFLAGS}" | |
5167 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
5168 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` | 5211 ac_safe=`echo "jerror.h" | sed 'y%./+-%__p_%'` |
5169 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 | 5212 echo $ac_n "checking for jerror.h""... $ac_c" 1>&6 |
5170 echo "configure:5171: checking for jerror.h" >&5 | 5213 echo "configure:5214: checking for jerror.h" >&5 |
5171 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5214 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5172 echo $ac_n "(cached) $ac_c" 1>&6 | 5215 echo $ac_n "(cached) $ac_c" 1>&6 |
5173 else | 5216 else |
5174 cat > conftest.$ac_ext <<EOF | 5217 cat > conftest.$ac_ext <<EOF |
5175 #line 5176 "configure" | 5218 #line 5219 "configure" |
5176 #include "confdefs.h" | 5219 #include "confdefs.h" |
5177 #include <jerror.h> | 5220 #include <jerror.h> |
5178 EOF | 5221 EOF |
5179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5180 { (eval echo configure:5181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5223 { (eval echo configure:5224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5182 if test -z "$ac_err"; then | 5225 if test -z "$ac_err"; then |
5183 rm -rf conftest* | 5226 rm -rf conftest* |
5184 eval "ac_cv_header_$ac_safe=yes" | 5227 eval "ac_cv_header_$ac_safe=yes" |
5185 else | 5228 else |
5192 rm -f conftest* | 5235 rm -f conftest* |
5193 fi | 5236 fi |
5194 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5195 echo "$ac_t""yes" 1>&6 | 5238 echo "$ac_t""yes" 1>&6 |
5196 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 | 5239 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 |
5197 echo "configure:5198: checking for jpeg_destroy_compress in -ljpeg" >&5 | 5240 echo "configure:5241: checking for jpeg_destroy_compress in -ljpeg" >&5 |
5198 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` | 5241 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` |
5199 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5200 echo $ac_n "(cached) $ac_c" 1>&6 | 5243 echo $ac_n "(cached) $ac_c" 1>&6 |
5201 else | 5244 else |
5202 ac_save_LIBS="$LIBS" | 5245 ac_save_LIBS="$LIBS" |
5203 LIBS="-ljpeg -lX11 $LIBS" | 5246 LIBS="-ljpeg $LIBS" |
5204 cat > conftest.$ac_ext <<EOF | 5247 cat > conftest.$ac_ext <<EOF |
5205 #line 5206 "configure" | 5248 #line 5249 "configure" |
5206 #include "confdefs.h" | 5249 #include "confdefs.h" |
5207 /* Override any gcc2 internal prototype to avoid an error. */ | 5250 /* Override any gcc2 internal prototype to avoid an error. */ |
5208 /* We use char because int might match the return type of a gcc2 | 5251 /* We use char because int might match the return type of a gcc2 |
5209 builtin and then its argument prototype would still apply. */ | 5252 builtin and then its argument prototype would still apply. */ |
5210 char jpeg_destroy_compress(); | 5253 char jpeg_destroy_compress(); |
5211 | 5254 |
5212 int main() { | 5255 int main() { |
5213 jpeg_destroy_compress() | 5256 jpeg_destroy_compress() |
5214 ; return 0; } | 5257 ; return 0; } |
5215 EOF | 5258 EOF |
5216 if { (eval echo configure:5217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5259 if { (eval echo configure:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5217 rm -rf conftest* | 5260 rm -rf conftest* |
5218 eval "ac_cv_lib_$ac_lib_var=yes" | 5261 eval "ac_cv_lib_$ac_lib_var=yes" |
5219 else | 5262 else |
5220 echo "configure: failed program was:" >&5 | 5263 echo "configure: failed program was:" >&5 |
5221 cat conftest.$ac_ext >&5 | 5264 cat conftest.$ac_ext >&5 |
5235 | 5278 |
5236 else | 5279 else |
5237 echo "$ac_t""no" 1>&6 | 5280 echo "$ac_t""no" 1>&6 |
5238 fi | 5281 fi |
5239 | 5282 |
5240 CFLAGS="${old_c_flags}" | |
5241 fi | 5283 fi |
5242 | 5284 |
5243 if test "${HAVE_JPEG}" = "yes"; then | 5285 if test "${HAVE_JPEG}" = "yes"; then |
5244 cat >> confdefs.h <<\EOF | 5286 cat >> confdefs.h <<\EOF |
5245 #define HAVE_JPEG 1 | 5287 #define HAVE_JPEG 1 |
5250 | 5292 |
5251 ### Use -lpng if available, unless `--with-png=no'. | 5293 ### Use -lpng if available, unless `--with-png=no'. |
5252 HAVE_PNG=no | 5294 HAVE_PNG=no |
5253 if test "${HAVE_X11}" = "yes"; then | 5295 if test "${HAVE_X11}" = "yes"; then |
5254 if test "${with_png}" != "no"; then | 5296 if test "${with_png}" != "no"; then |
5255 old_c_flags="${CFLAGS}" | |
5256 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
5257 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` | 5297 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'` |
5258 echo $ac_n "checking for png.h""... $ac_c" 1>&6 | 5298 echo $ac_n "checking for png.h""... $ac_c" 1>&6 |
5259 echo "configure:5260: checking for png.h" >&5 | 5299 echo "configure:5300: checking for png.h" >&5 |
5260 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5261 echo $ac_n "(cached) $ac_c" 1>&6 | 5301 echo $ac_n "(cached) $ac_c" 1>&6 |
5262 else | 5302 else |
5263 cat > conftest.$ac_ext <<EOF | 5303 cat > conftest.$ac_ext <<EOF |
5264 #line 5265 "configure" | 5304 #line 5305 "configure" |
5265 #include "confdefs.h" | 5305 #include "confdefs.h" |
5266 #include <png.h> | 5306 #include <png.h> |
5267 EOF | 5307 EOF |
5268 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5269 { (eval echo configure:5270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5309 { (eval echo configure:5310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5270 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5271 if test -z "$ac_err"; then | 5311 if test -z "$ac_err"; then |
5272 rm -rf conftest* | 5312 rm -rf conftest* |
5273 eval "ac_cv_header_$ac_safe=yes" | 5313 eval "ac_cv_header_$ac_safe=yes" |
5274 else | 5314 else |
5281 rm -f conftest* | 5321 rm -f conftest* |
5282 fi | 5322 fi |
5283 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5323 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5284 echo "$ac_t""yes" 1>&6 | 5324 echo "$ac_t""yes" 1>&6 |
5285 echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6 | 5325 echo $ac_n "checking for png_get_channels in -lpng""... $ac_c" 1>&6 |
5286 echo "configure:5287: checking for png_get_channels in -lpng" >&5 | 5326 echo "configure:5327: checking for png_get_channels in -lpng" >&5 |
5287 ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'` | 5327 ac_lib_var=`echo png'_'png_get_channels | sed 'y%./+-%__p_%'` |
5288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5289 echo $ac_n "(cached) $ac_c" 1>&6 | 5329 echo $ac_n "(cached) $ac_c" 1>&6 |
5290 else | 5330 else |
5291 ac_save_LIBS="$LIBS" | 5331 ac_save_LIBS="$LIBS" |
5292 LIBS="-lpng -lX11 -lz -lm $LIBS" | 5332 LIBS="-lpng -lz -lm $LIBS" |
5293 cat > conftest.$ac_ext <<EOF | 5333 cat > conftest.$ac_ext <<EOF |
5294 #line 5295 "configure" | 5334 #line 5335 "configure" |
5295 #include "confdefs.h" | 5335 #include "confdefs.h" |
5296 /* Override any gcc2 internal prototype to avoid an error. */ | 5336 /* Override any gcc2 internal prototype to avoid an error. */ |
5297 /* We use char because int might match the return type of a gcc2 | 5337 /* We use char because int might match the return type of a gcc2 |
5298 builtin and then its argument prototype would still apply. */ | 5338 builtin and then its argument prototype would still apply. */ |
5299 char png_get_channels(); | 5339 char png_get_channels(); |
5300 | 5340 |
5301 int main() { | 5341 int main() { |
5302 png_get_channels() | 5342 png_get_channels() |
5303 ; return 0; } | 5343 ; return 0; } |
5304 EOF | 5344 EOF |
5305 if { (eval echo configure:5306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5345 if { (eval echo configure:5346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5306 rm -rf conftest* | 5346 rm -rf conftest* |
5307 eval "ac_cv_lib_$ac_lib_var=yes" | 5347 eval "ac_cv_lib_$ac_lib_var=yes" |
5308 else | 5348 else |
5309 echo "configure: failed program was:" >&5 | 5349 echo "configure: failed program was:" >&5 |
5310 cat conftest.$ac_ext >&5 | 5350 cat conftest.$ac_ext >&5 |
5324 | 5364 |
5325 else | 5365 else |
5326 echo "$ac_t""no" 1>&6 | 5366 echo "$ac_t""no" 1>&6 |
5327 fi | 5367 fi |
5328 | 5368 |
5329 CFLAGS="${old_c_flags}" | |
5330 fi | 5369 fi |
5331 | 5370 |
5332 if test "${HAVE_PNG}" = "yes"; then | 5371 if test "${HAVE_PNG}" = "yes"; then |
5333 cat >> confdefs.h <<\EOF | 5372 cat >> confdefs.h <<\EOF |
5334 #define HAVE_PNG 1 | 5373 #define HAVE_PNG 1 |
5339 | 5378 |
5340 ### Use -ltiff if available, unless `--with-tiff=no'. | 5379 ### Use -ltiff if available, unless `--with-tiff=no'. |
5341 HAVE_TIFF=no | 5380 HAVE_TIFF=no |
5342 if test "${HAVE_X11}" = "yes"; then | 5381 if test "${HAVE_X11}" = "yes"; then |
5343 if test "${with_tiff}" != "no"; then | 5382 if test "${with_tiff}" != "no"; then |
5344 old_c_flags="${CFLAGS}" | |
5345 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
5346 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` | 5383 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'` |
5347 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 | 5384 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6 |
5348 echo "configure:5349: checking for tiffio.h" >&5 | 5385 echo "configure:5386: checking for tiffio.h" >&5 |
5349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5386 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5350 echo $ac_n "(cached) $ac_c" 1>&6 | 5387 echo $ac_n "(cached) $ac_c" 1>&6 |
5351 else | 5388 else |
5352 cat > conftest.$ac_ext <<EOF | 5389 cat > conftest.$ac_ext <<EOF |
5353 #line 5354 "configure" | 5390 #line 5391 "configure" |
5354 #include "confdefs.h" | 5391 #include "confdefs.h" |
5355 #include <tiffio.h> | 5392 #include <tiffio.h> |
5356 EOF | 5393 EOF |
5357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5358 { (eval echo configure:5359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5395 { (eval echo configure:5396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5360 if test -z "$ac_err"; then | 5397 if test -z "$ac_err"; then |
5361 rm -rf conftest* | 5398 rm -rf conftest* |
5362 eval "ac_cv_header_$ac_safe=yes" | 5399 eval "ac_cv_header_$ac_safe=yes" |
5363 else | 5400 else |
5369 fi | 5406 fi |
5370 rm -f conftest* | 5407 rm -f conftest* |
5371 fi | 5408 fi |
5372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5373 echo "$ac_t""yes" 1>&6 | 5410 echo "$ac_t""yes" 1>&6 |
5374 tifflibs="-lX11 -lz -lm" | 5411 tifflibs="-lz -lm" |
5375 # At least one tiff package requires the jpeg library. | 5412 # At least one tiff package requires the jpeg library. |
5376 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi | 5413 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
5377 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 | 5414 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6 |
5378 echo "configure:5379: checking for TIFFGetVersion in -ltiff" >&5 | 5415 echo "configure:5416: checking for TIFFGetVersion in -ltiff" >&5 |
5379 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` | 5416 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'` |
5380 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5417 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5381 echo $ac_n "(cached) $ac_c" 1>&6 | 5418 echo $ac_n "(cached) $ac_c" 1>&6 |
5382 else | 5419 else |
5383 ac_save_LIBS="$LIBS" | 5420 ac_save_LIBS="$LIBS" |
5384 LIBS="-ltiff $tifflibs $LIBS" | 5421 LIBS="-ltiff $tifflibs $LIBS" |
5385 cat > conftest.$ac_ext <<EOF | 5422 cat > conftest.$ac_ext <<EOF |
5386 #line 5387 "configure" | 5423 #line 5424 "configure" |
5387 #include "confdefs.h" | 5424 #include "confdefs.h" |
5388 /* Override any gcc2 internal prototype to avoid an error. */ | 5425 /* Override any gcc2 internal prototype to avoid an error. */ |
5389 /* We use char because int might match the return type of a gcc2 | 5426 /* We use char because int might match the return type of a gcc2 |
5390 builtin and then its argument prototype would still apply. */ | 5427 builtin and then its argument prototype would still apply. */ |
5391 char TIFFGetVersion(); | 5428 char TIFFGetVersion(); |
5392 | 5429 |
5393 int main() { | 5430 int main() { |
5394 TIFFGetVersion() | 5431 TIFFGetVersion() |
5395 ; return 0; } | 5432 ; return 0; } |
5396 EOF | 5433 EOF |
5397 if { (eval echo configure:5398: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5434 if { (eval echo configure:5435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5398 rm -rf conftest* | 5435 rm -rf conftest* |
5399 eval "ac_cv_lib_$ac_lib_var=yes" | 5436 eval "ac_cv_lib_$ac_lib_var=yes" |
5400 else | 5437 else |
5401 echo "configure: failed program was:" >&5 | 5438 echo "configure: failed program was:" >&5 |
5402 cat conftest.$ac_ext >&5 | 5439 cat conftest.$ac_ext >&5 |
5416 | 5453 |
5417 else | 5454 else |
5418 echo "$ac_t""no" 1>&6 | 5455 echo "$ac_t""no" 1>&6 |
5419 fi | 5456 fi |
5420 | 5457 |
5421 CFLAGS="${old_c_flags}" | |
5422 fi | 5458 fi |
5423 | 5459 |
5424 if test "${HAVE_TIFF}" = "yes"; then | 5460 if test "${HAVE_TIFF}" = "yes"; then |
5425 cat >> confdefs.h <<\EOF | 5461 cat >> confdefs.h <<\EOF |
5426 #define HAVE_TIFF 1 | 5462 #define HAVE_TIFF 1 |
5431 | 5467 |
5432 ### Use -lgif if available, unless `--with-gif=no'. | 5468 ### Use -lgif if available, unless `--with-gif=no'. |
5433 HAVE_GIF=no | 5469 HAVE_GIF=no |
5434 if test "${HAVE_X11}" = "yes"; then | 5470 if test "${HAVE_X11}" = "yes"; then |
5435 if test "${with_gif}" != "no"; then | 5471 if test "${with_gif}" != "no"; then |
5436 old_c_flags="${CFLAGS}" | |
5437 CFLAGS="${LD_SWITCH_X_SITE} ${CFLAGS}" | |
5438 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` | 5472 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'` |
5439 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 | 5473 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6 |
5440 echo "configure:5441: checking for gif_lib.h" >&5 | 5474 echo "configure:5475: checking for gif_lib.h" >&5 |
5441 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 5475 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
5442 echo $ac_n "(cached) $ac_c" 1>&6 | 5476 echo $ac_n "(cached) $ac_c" 1>&6 |
5443 else | 5477 else |
5444 cat > conftest.$ac_ext <<EOF | 5478 cat > conftest.$ac_ext <<EOF |
5445 #line 5446 "configure" | 5479 #line 5480 "configure" |
5446 #include "confdefs.h" | 5480 #include "confdefs.h" |
5447 #include <gif_lib.h> | 5481 #include <gif_lib.h> |
5448 EOF | 5482 EOF |
5449 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 5483 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
5450 { (eval echo configure:5451: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 5484 { (eval echo configure:5485: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
5451 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 5485 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
5452 if test -z "$ac_err"; then | 5486 if test -z "$ac_err"; then |
5453 rm -rf conftest* | 5487 rm -rf conftest* |
5454 eval "ac_cv_header_$ac_safe=yes" | 5488 eval "ac_cv_header_$ac_safe=yes" |
5455 else | 5489 else |
5462 rm -f conftest* | 5496 rm -f conftest* |
5463 fi | 5497 fi |
5464 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | 5498 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
5465 echo "$ac_t""yes" 1>&6 | 5499 echo "$ac_t""yes" 1>&6 |
5466 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 | 5500 echo $ac_n "checking for DGifOpen in -lungif""... $ac_c" 1>&6 |
5467 echo "configure:5468: checking for DGifOpen in -lungif" >&5 | 5501 echo "configure:5502: checking for DGifOpen in -lungif" >&5 |
5468 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` | 5502 ac_lib_var=`echo ungif'_'DGifOpen | sed 'y%./+-%__p_%'` |
5469 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5503 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5470 echo $ac_n "(cached) $ac_c" 1>&6 | 5504 echo $ac_n "(cached) $ac_c" 1>&6 |
5471 else | 5505 else |
5472 ac_save_LIBS="$LIBS" | 5506 ac_save_LIBS="$LIBS" |
5473 LIBS="-lungif -lX11 $LIBS" | 5507 LIBS="-lungif $LIBS" |
5474 cat > conftest.$ac_ext <<EOF | 5508 cat > conftest.$ac_ext <<EOF |
5475 #line 5476 "configure" | 5509 #line 5510 "configure" |
5476 #include "confdefs.h" | 5510 #include "confdefs.h" |
5477 /* Override any gcc2 internal prototype to avoid an error. */ | 5511 /* Override any gcc2 internal prototype to avoid an error. */ |
5478 /* We use char because int might match the return type of a gcc2 | 5512 /* We use char because int might match the return type of a gcc2 |
5479 builtin and then its argument prototype would still apply. */ | 5513 builtin and then its argument prototype would still apply. */ |
5480 char DGifOpen(); | 5514 char DGifOpen(); |
5481 | 5515 |
5482 int main() { | 5516 int main() { |
5483 DGifOpen() | 5517 DGifOpen() |
5484 ; return 0; } | 5518 ; return 0; } |
5485 EOF | 5519 EOF |
5486 if { (eval echo configure:5487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5520 if { (eval echo configure:5521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5487 rm -rf conftest* | 5521 rm -rf conftest* |
5488 eval "ac_cv_lib_$ac_lib_var=yes" | 5522 eval "ac_cv_lib_$ac_lib_var=yes" |
5489 else | 5523 else |
5490 echo "configure: failed program was:" >&5 | 5524 echo "configure: failed program was:" >&5 |
5491 cat conftest.$ac_ext >&5 | 5525 cat conftest.$ac_ext >&5 |
5505 | 5539 |
5506 else | 5540 else |
5507 echo "$ac_t""no" 1>&6 | 5541 echo "$ac_t""no" 1>&6 |
5508 fi | 5542 fi |
5509 | 5543 |
5510 CFLAGS="${old_c_flags}" | |
5511 fi | 5544 fi |
5512 | 5545 |
5513 if test "${HAVE_GIF}" = "yes"; then | 5546 if test "${HAVE_GIF}" = "yes"; then |
5514 cat >> confdefs.h <<\EOF | 5547 cat >> confdefs.h <<\EOF |
5515 #define HAVE_GIF 1 | 5548 #define HAVE_GIF 1 |
5518 fi | 5551 fi |
5519 fi | 5552 fi |
5520 | 5553 |
5521 # If netdb.h doesn't declare h_errno, we must declare it by hand. | 5554 # If netdb.h doesn't declare h_errno, we must declare it by hand. |
5522 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 | 5555 echo $ac_n "checking whether netdb declares h_errno""... $ac_c" 1>&6 |
5523 echo "configure:5524: checking whether netdb declares h_errno" >&5 | 5556 echo "configure:5557: checking whether netdb declares h_errno" >&5 |
5524 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then | 5557 if eval "test \"`echo '$''{'emacs_cv_netdb_declares_h_errno'+set}'`\" = set"; then |
5525 echo $ac_n "(cached) $ac_c" 1>&6 | 5558 echo $ac_n "(cached) $ac_c" 1>&6 |
5526 else | 5559 else |
5527 cat > conftest.$ac_ext <<EOF | 5560 cat > conftest.$ac_ext <<EOF |
5528 #line 5529 "configure" | 5561 #line 5562 "configure" |
5529 #include "confdefs.h" | 5562 #include "confdefs.h" |
5530 #include <netdb.h> | 5563 #include <netdb.h> |
5531 int main() { | 5564 int main() { |
5532 return h_errno; | 5565 return h_errno; |
5533 ; return 0; } | 5566 ; return 0; } |
5534 EOF | 5567 EOF |
5535 if { (eval echo configure:5536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5568 if { (eval echo configure:5569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5536 rm -rf conftest* | 5569 rm -rf conftest* |
5537 emacs_cv_netdb_declares_h_errno=yes | 5570 emacs_cv_netdb_declares_h_errno=yes |
5538 else | 5571 else |
5539 echo "configure: failed program was:" >&5 | 5572 echo "configure: failed program was:" >&5 |
5540 cat conftest.$ac_ext >&5 | 5573 cat conftest.$ac_ext >&5 |
5553 fi | 5586 fi |
5554 | 5587 |
5555 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | 5588 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
5556 # for constant arguments. Useless! | 5589 # for constant arguments. Useless! |
5557 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | 5590 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
5558 echo "configure:5559: checking for working alloca.h" >&5 | 5591 echo "configure:5592: checking for working alloca.h" >&5 |
5559 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then | 5592 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
5560 echo $ac_n "(cached) $ac_c" 1>&6 | 5593 echo $ac_n "(cached) $ac_c" 1>&6 |
5561 else | 5594 else |
5562 cat > conftest.$ac_ext <<EOF | 5595 cat > conftest.$ac_ext <<EOF |
5563 #line 5564 "configure" | 5596 #line 5597 "configure" |
5564 #include "confdefs.h" | 5597 #include "confdefs.h" |
5565 #include <alloca.h> | 5598 #include <alloca.h> |
5566 int main() { | 5599 int main() { |
5567 char *p = alloca(2 * sizeof(int)); | 5600 char *p = alloca(2 * sizeof(int)); |
5568 ; return 0; } | 5601 ; return 0; } |
5569 EOF | 5602 EOF |
5570 if { (eval echo configure:5571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5603 if { (eval echo configure:5604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5571 rm -rf conftest* | 5604 rm -rf conftest* |
5572 ac_cv_header_alloca_h=yes | 5605 ac_cv_header_alloca_h=yes |
5573 else | 5606 else |
5574 echo "configure: failed program was:" >&5 | 5607 echo "configure: failed program was:" >&5 |
5575 cat conftest.$ac_ext >&5 | 5608 cat conftest.$ac_ext >&5 |
5586 EOF | 5619 EOF |
5587 | 5620 |
5588 fi | 5621 fi |
5589 | 5622 |
5590 echo $ac_n "checking for alloca""... $ac_c" 1>&6 | 5623 echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
5591 echo "configure:5592: checking for alloca" >&5 | 5624 echo "configure:5625: checking for alloca" >&5 |
5592 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then | 5625 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
5593 echo $ac_n "(cached) $ac_c" 1>&6 | 5626 echo $ac_n "(cached) $ac_c" 1>&6 |
5594 else | 5627 else |
5595 cat > conftest.$ac_ext <<EOF | 5628 cat > conftest.$ac_ext <<EOF |
5596 #line 5597 "configure" | 5629 #line 5630 "configure" |
5597 #include "confdefs.h" | 5630 #include "confdefs.h" |
5598 | 5631 |
5599 #ifdef __GNUC__ | 5632 #ifdef __GNUC__ |
5600 # define alloca __builtin_alloca | 5633 # define alloca __builtin_alloca |
5601 #else | 5634 #else |
5619 | 5652 |
5620 int main() { | 5653 int main() { |
5621 char *p = (char *) alloca(1); | 5654 char *p = (char *) alloca(1); |
5622 ; return 0; } | 5655 ; return 0; } |
5623 EOF | 5656 EOF |
5624 if { (eval echo configure:5625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5657 if { (eval echo configure:5658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5625 rm -rf conftest* | 5658 rm -rf conftest* |
5626 ac_cv_func_alloca_works=yes | 5659 ac_cv_func_alloca_works=yes |
5627 else | 5660 else |
5628 echo "configure: failed program was:" >&5 | 5661 echo "configure: failed program was:" >&5 |
5629 cat conftest.$ac_ext >&5 | 5662 cat conftest.$ac_ext >&5 |
5651 #define C_ALLOCA 1 | 5684 #define C_ALLOCA 1 |
5652 EOF | 5685 EOF |
5653 | 5686 |
5654 | 5687 |
5655 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | 5688 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
5656 echo "configure:5657: checking whether alloca needs Cray hooks" >&5 | 5689 echo "configure:5690: checking whether alloca needs Cray hooks" >&5 |
5657 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then | 5690 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
5658 echo $ac_n "(cached) $ac_c" 1>&6 | 5691 echo $ac_n "(cached) $ac_c" 1>&6 |
5659 else | 5692 else |
5660 cat > conftest.$ac_ext <<EOF | 5693 cat > conftest.$ac_ext <<EOF |
5661 #line 5662 "configure" | 5694 #line 5695 "configure" |
5662 #include "confdefs.h" | 5695 #include "confdefs.h" |
5663 #if defined(CRAY) && ! defined(CRAY2) | 5696 #if defined(CRAY) && ! defined(CRAY2) |
5664 webecray | 5697 webecray |
5665 #else | 5698 #else |
5666 wenotbecray | 5699 wenotbecray |
5681 | 5714 |
5682 echo "$ac_t""$ac_cv_os_cray" 1>&6 | 5715 echo "$ac_t""$ac_cv_os_cray" 1>&6 |
5683 if test $ac_cv_os_cray = yes; then | 5716 if test $ac_cv_os_cray = yes; then |
5684 for ac_func in _getb67 GETB67 getb67; do | 5717 for ac_func in _getb67 GETB67 getb67; do |
5685 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 5718 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5686 echo "configure:5687: checking for $ac_func" >&5 | 5719 echo "configure:5720: checking for $ac_func" >&5 |
5687 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 5720 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5688 echo $ac_n "(cached) $ac_c" 1>&6 | 5721 echo $ac_n "(cached) $ac_c" 1>&6 |
5689 else | 5722 else |
5690 cat > conftest.$ac_ext <<EOF | 5723 cat > conftest.$ac_ext <<EOF |
5691 #line 5692 "configure" | 5724 #line 5725 "configure" |
5692 #include "confdefs.h" | 5725 #include "confdefs.h" |
5693 /* System header to define __stub macros and hopefully few prototypes, | 5726 /* System header to define __stub macros and hopefully few prototypes, |
5694 which can conflict with char $ac_func(); below. */ | 5727 which can conflict with char $ac_func(); below. */ |
5695 #include <assert.h> | 5728 #include <assert.h> |
5696 /* Override any gcc2 internal prototype to avoid an error. */ | 5729 /* Override any gcc2 internal prototype to avoid an error. */ |
5709 $ac_func(); | 5742 $ac_func(); |
5710 #endif | 5743 #endif |
5711 | 5744 |
5712 ; return 0; } | 5745 ; return 0; } |
5713 EOF | 5746 EOF |
5714 if { (eval echo configure:5715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5747 if { (eval echo configure:5748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5715 rm -rf conftest* | 5748 rm -rf conftest* |
5716 eval "ac_cv_func_$ac_func=yes" | 5749 eval "ac_cv_func_$ac_func=yes" |
5717 else | 5750 else |
5718 echo "configure: failed program was:" >&5 | 5751 echo "configure: failed program was:" >&5 |
5719 cat conftest.$ac_ext >&5 | 5752 cat conftest.$ac_ext >&5 |
5736 | 5769 |
5737 done | 5770 done |
5738 fi | 5771 fi |
5739 | 5772 |
5740 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | 5773 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
5741 echo "configure:5742: checking stack direction for C alloca" >&5 | 5774 echo "configure:5775: checking stack direction for C alloca" >&5 |
5742 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then | 5775 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
5743 echo $ac_n "(cached) $ac_c" 1>&6 | 5776 echo $ac_n "(cached) $ac_c" 1>&6 |
5744 else | 5777 else |
5745 if test "$cross_compiling" = yes; then | 5778 if test "$cross_compiling" = yes; then |
5746 ac_cv_c_stack_direction=0 | 5779 ac_cv_c_stack_direction=0 |
5747 else | 5780 else |
5748 cat > conftest.$ac_ext <<EOF | 5781 cat > conftest.$ac_ext <<EOF |
5749 #line 5750 "configure" | 5782 #line 5783 "configure" |
5750 #include "confdefs.h" | 5783 #include "confdefs.h" |
5751 find_stack_direction () | 5784 find_stack_direction () |
5752 { | 5785 { |
5753 static char *addr = 0; | 5786 static char *addr = 0; |
5754 auto char dummy; | 5787 auto char dummy; |
5763 main () | 5796 main () |
5764 { | 5797 { |
5765 exit (find_stack_direction() < 0); | 5798 exit (find_stack_direction() < 0); |
5766 } | 5799 } |
5767 EOF | 5800 EOF |
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 | 5801 if { (eval echo configure:5802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
5769 then | 5802 then |
5770 ac_cv_c_stack_direction=1 | 5803 ac_cv_c_stack_direction=1 |
5771 else | 5804 else |
5772 echo "configure: failed program was:" >&5 | 5805 echo "configure: failed program was:" >&5 |
5773 cat conftest.$ac_ext >&5 | 5806 cat conftest.$ac_ext >&5 |
5788 | 5821 |
5789 | 5822 |
5790 # fmod, logb, and frexp are found in -lm on most systems. | 5823 # fmod, logb, and frexp are found in -lm on most systems. |
5791 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. | 5824 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. |
5792 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 | 5825 echo $ac_n "checking for sqrt in -lm""... $ac_c" 1>&6 |
5793 echo "configure:5794: checking for sqrt in -lm" >&5 | 5826 echo "configure:5827: checking for sqrt in -lm" >&5 |
5794 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` | 5827 ac_lib_var=`echo m'_'sqrt | sed 'y%./+-%__p_%'` |
5795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5796 echo $ac_n "(cached) $ac_c" 1>&6 | 5829 echo $ac_n "(cached) $ac_c" 1>&6 |
5797 else | 5830 else |
5798 ac_save_LIBS="$LIBS" | 5831 ac_save_LIBS="$LIBS" |
5799 LIBS="-lm $LIBS" | 5832 LIBS="-lm $LIBS" |
5800 cat > conftest.$ac_ext <<EOF | 5833 cat > conftest.$ac_ext <<EOF |
5801 #line 5802 "configure" | 5834 #line 5835 "configure" |
5802 #include "confdefs.h" | 5835 #include "confdefs.h" |
5803 /* Override any gcc2 internal prototype to avoid an error. */ | 5836 /* Override any gcc2 internal prototype to avoid an error. */ |
5804 /* We use char because int might match the return type of a gcc2 | 5837 /* We use char because int might match the return type of a gcc2 |
5805 builtin and then its argument prototype would still apply. */ | 5838 builtin and then its argument prototype would still apply. */ |
5806 char sqrt(); | 5839 char sqrt(); |
5807 | 5840 |
5808 int main() { | 5841 int main() { |
5809 sqrt() | 5842 sqrt() |
5810 ; return 0; } | 5843 ; return 0; } |
5811 EOF | 5844 EOF |
5812 if { (eval echo configure:5813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5845 if { (eval echo configure:5846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5813 rm -rf conftest* | 5846 rm -rf conftest* |
5814 eval "ac_cv_lib_$ac_lib_var=yes" | 5847 eval "ac_cv_lib_$ac_lib_var=yes" |
5815 else | 5848 else |
5816 echo "configure: failed program was:" >&5 | 5849 echo "configure: failed program was:" >&5 |
5817 cat conftest.$ac_ext >&5 | 5850 cat conftest.$ac_ext >&5 |
5837 fi | 5870 fi |
5838 | 5871 |
5839 | 5872 |
5840 # Check for mail-locking functions in a "mail" library | 5873 # Check for mail-locking functions in a "mail" library |
5841 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 | 5874 echo $ac_n "checking for maillock in -lmail""... $ac_c" 1>&6 |
5842 echo "configure:5843: checking for maillock in -lmail" >&5 | 5875 echo "configure:5876: checking for maillock in -lmail" >&5 |
5843 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` | 5876 ac_lib_var=`echo mail'_'maillock | sed 'y%./+-%__p_%'` |
5844 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5877 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5845 echo $ac_n "(cached) $ac_c" 1>&6 | 5878 echo $ac_n "(cached) $ac_c" 1>&6 |
5846 else | 5879 else |
5847 ac_save_LIBS="$LIBS" | 5880 ac_save_LIBS="$LIBS" |
5848 LIBS="-lmail $LIBS" | 5881 LIBS="-lmail $LIBS" |
5849 cat > conftest.$ac_ext <<EOF | 5882 cat > conftest.$ac_ext <<EOF |
5850 #line 5851 "configure" | 5883 #line 5884 "configure" |
5851 #include "confdefs.h" | 5884 #include "confdefs.h" |
5852 /* Override any gcc2 internal prototype to avoid an error. */ | 5885 /* Override any gcc2 internal prototype to avoid an error. */ |
5853 /* We use char because int might match the return type of a gcc2 | 5886 /* We use char because int might match the return type of a gcc2 |
5854 builtin and then its argument prototype would still apply. */ | 5887 builtin and then its argument prototype would still apply. */ |
5855 char maillock(); | 5888 char maillock(); |
5856 | 5889 |
5857 int main() { | 5890 int main() { |
5858 maillock() | 5891 maillock() |
5859 ; return 0; } | 5892 ; return 0; } |
5860 EOF | 5893 EOF |
5861 if { (eval echo configure:5862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5894 if { (eval echo configure:5895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5862 rm -rf conftest* | 5895 rm -rf conftest* |
5863 eval "ac_cv_lib_$ac_lib_var=yes" | 5896 eval "ac_cv_lib_$ac_lib_var=yes" |
5864 else | 5897 else |
5865 echo "configure: failed program was:" >&5 | 5898 echo "configure: failed program was:" >&5 |
5866 cat conftest.$ac_ext >&5 | 5899 cat conftest.$ac_ext >&5 |
5884 else | 5917 else |
5885 echo "$ac_t""no" 1>&6 | 5918 echo "$ac_t""no" 1>&6 |
5886 fi | 5919 fi |
5887 | 5920 |
5888 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 | 5921 echo $ac_n "checking for maillock in -llockfile""... $ac_c" 1>&6 |
5889 echo "configure:5890: checking for maillock in -llockfile" >&5 | 5922 echo "configure:5923: checking for maillock in -llockfile" >&5 |
5890 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` | 5923 ac_lib_var=`echo lockfile'_'maillock | sed 'y%./+-%__p_%'` |
5891 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 5924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
5892 echo $ac_n "(cached) $ac_c" 1>&6 | 5925 echo $ac_n "(cached) $ac_c" 1>&6 |
5893 else | 5926 else |
5894 ac_save_LIBS="$LIBS" | 5927 ac_save_LIBS="$LIBS" |
5895 LIBS="-llockfile $LIBS" | 5928 LIBS="-llockfile $LIBS" |
5896 cat > conftest.$ac_ext <<EOF | 5929 cat > conftest.$ac_ext <<EOF |
5897 #line 5898 "configure" | 5930 #line 5931 "configure" |
5898 #include "confdefs.h" | 5931 #include "confdefs.h" |
5899 /* Override any gcc2 internal prototype to avoid an error. */ | 5932 /* Override any gcc2 internal prototype to avoid an error. */ |
5900 /* We use char because int might match the return type of a gcc2 | 5933 /* We use char because int might match the return type of a gcc2 |
5901 builtin and then its argument prototype would still apply. */ | 5934 builtin and then its argument prototype would still apply. */ |
5902 char maillock(); | 5935 char maillock(); |
5903 | 5936 |
5904 int main() { | 5937 int main() { |
5905 maillock() | 5938 maillock() |
5906 ; return 0; } | 5939 ; return 0; } |
5907 EOF | 5940 EOF |
5908 if { (eval echo configure:5909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 5941 if { (eval echo configure:5942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
5909 rm -rf conftest* | 5942 rm -rf conftest* |
5910 eval "ac_cv_lib_$ac_lib_var=yes" | 5943 eval "ac_cv_lib_$ac_lib_var=yes" |
5911 else | 5944 else |
5912 echo "configure: failed program was:" >&5 | 5945 echo "configure: failed program was:" >&5 |
5913 cat conftest.$ac_ext >&5 | 5946 cat conftest.$ac_ext >&5 |
5937 # (no liblockfile.a installed), ensure that we don't need to. | 5970 # (no liblockfile.a installed), ensure that we don't need to. |
5938 if test "$ac_cv_lib_lockfile_maillock" = no; then | 5971 if test "$ac_cv_lib_lockfile_maillock" = no; then |
5939 # Extract the first word of "liblockfile.so", so it can be a program name with args. | 5972 # Extract the first word of "liblockfile.so", so it can be a program name with args. |
5940 set dummy liblockfile.so; ac_word=$2 | 5973 set dummy liblockfile.so; ac_word=$2 |
5941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | 5974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
5942 echo "configure:5943: checking for $ac_word" >&5 | 5975 echo "configure:5976: checking for $ac_word" >&5 |
5943 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then | 5976 if eval "test \"`echo '$''{'ac_cv_prog_liblockfile'+set}'`\" = set"; then |
5944 echo $ac_n "(cached) $ac_c" 1>&6 | 5977 echo $ac_n "(cached) $ac_c" 1>&6 |
5945 else | 5978 else |
5946 if test -n "$liblockfile"; then | 5979 if test -n "$liblockfile"; then |
5947 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. | 5980 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. |
5978 else : | 6011 else : |
5979 fi | 6012 fi |
5980 for ac_func in touchlock | 6013 for ac_func in touchlock |
5981 do | 6014 do |
5982 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6015 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
5983 echo "configure:5984: checking for $ac_func" >&5 | 6016 echo "configure:6017: checking for $ac_func" >&5 |
5984 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6017 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
5985 echo $ac_n "(cached) $ac_c" 1>&6 | 6018 echo $ac_n "(cached) $ac_c" 1>&6 |
5986 else | 6019 else |
5987 cat > conftest.$ac_ext <<EOF | 6020 cat > conftest.$ac_ext <<EOF |
5988 #line 5989 "configure" | 6021 #line 6022 "configure" |
5989 #include "confdefs.h" | 6022 #include "confdefs.h" |
5990 /* System header to define __stub macros and hopefully few prototypes, | 6023 /* System header to define __stub macros and hopefully few prototypes, |
5991 which can conflict with char $ac_func(); below. */ | 6024 which can conflict with char $ac_func(); below. */ |
5992 #include <assert.h> | 6025 #include <assert.h> |
5993 /* Override any gcc2 internal prototype to avoid an error. */ | 6026 /* Override any gcc2 internal prototype to avoid an error. */ |
6006 $ac_func(); | 6039 $ac_func(); |
6007 #endif | 6040 #endif |
6008 | 6041 |
6009 ; return 0; } | 6042 ; return 0; } |
6010 EOF | 6043 EOF |
6011 if { (eval echo configure:6012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6044 if { (eval echo configure:6045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6012 rm -rf conftest* | 6045 rm -rf conftest* |
6013 eval "ac_cv_func_$ac_func=yes" | 6046 eval "ac_cv_func_$ac_func=yes" |
6014 else | 6047 else |
6015 echo "configure: failed program was:" >&5 | 6048 echo "configure: failed program was:" >&5 |
6016 cat conftest.$ac_ext >&5 | 6049 cat conftest.$ac_ext >&5 |
6034 | 6067 |
6035 for ac_hdr in maillock.h | 6068 for ac_hdr in maillock.h |
6036 do | 6069 do |
6037 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6070 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6038 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6071 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6039 echo "configure:6040: checking for $ac_hdr" >&5 | 6072 echo "configure:6073: checking for $ac_hdr" >&5 |
6040 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6041 echo $ac_n "(cached) $ac_c" 1>&6 | 6074 echo $ac_n "(cached) $ac_c" 1>&6 |
6042 else | 6075 else |
6043 cat > conftest.$ac_ext <<EOF | 6076 cat > conftest.$ac_ext <<EOF |
6044 #line 6045 "configure" | 6077 #line 6078 "configure" |
6045 #include "confdefs.h" | 6078 #include "confdefs.h" |
6046 #include <$ac_hdr> | 6079 #include <$ac_hdr> |
6047 EOF | 6080 EOF |
6048 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6049 { (eval echo configure:6050: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6082 { (eval echo configure:6083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6050 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6051 if test -z "$ac_err"; then | 6084 if test -z "$ac_err"; then |
6052 rm -rf conftest* | 6085 rm -rf conftest* |
6053 eval "ac_cv_header_$ac_safe=yes" | 6086 eval "ac_cv_header_$ac_safe=yes" |
6054 else | 6087 else |
6080 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ | 6113 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \ |
6081 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \ | 6114 __fpending mblen mbrlen strsignal setitimer ualarm index rindex \ |
6082 gai_strerror mkstemp | 6115 gai_strerror mkstemp |
6083 do | 6116 do |
6084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6085 echo "configure:6086: checking for $ac_func" >&5 | 6118 echo "configure:6119: checking for $ac_func" >&5 |
6086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6087 echo $ac_n "(cached) $ac_c" 1>&6 | 6120 echo $ac_n "(cached) $ac_c" 1>&6 |
6088 else | 6121 else |
6089 cat > conftest.$ac_ext <<EOF | 6122 cat > conftest.$ac_ext <<EOF |
6090 #line 6091 "configure" | 6123 #line 6124 "configure" |
6091 #include "confdefs.h" | 6124 #include "confdefs.h" |
6092 /* System header to define __stub macros and hopefully few prototypes, | 6125 /* System header to define __stub macros and hopefully few prototypes, |
6093 which can conflict with char $ac_func(); below. */ | 6126 which can conflict with char $ac_func(); below. */ |
6094 #include <assert.h> | 6127 #include <assert.h> |
6095 /* Override any gcc2 internal prototype to avoid an error. */ | 6128 /* Override any gcc2 internal prototype to avoid an error. */ |
6108 $ac_func(); | 6141 $ac_func(); |
6109 #endif | 6142 #endif |
6110 | 6143 |
6111 ; return 0; } | 6144 ; return 0; } |
6112 EOF | 6145 EOF |
6113 if { (eval echo configure:6114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6146 if { (eval echo configure:6147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6114 rm -rf conftest* | 6147 rm -rf conftest* |
6115 eval "ac_cv_func_$ac_func=yes" | 6148 eval "ac_cv_func_$ac_func=yes" |
6116 else | 6149 else |
6117 echo "configure: failed program was:" >&5 | 6150 echo "configure: failed program was:" >&5 |
6118 cat conftest.$ac_ext >&5 | 6151 cat conftest.$ac_ext >&5 |
6137 | 6170 |
6138 for ac_hdr in sys/time.h unistd.h | 6171 for ac_hdr in sys/time.h unistd.h |
6139 do | 6172 do |
6140 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6173 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6141 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6174 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6142 echo "configure:6143: checking for $ac_hdr" >&5 | 6175 echo "configure:6176: checking for $ac_hdr" >&5 |
6143 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6176 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6144 echo $ac_n "(cached) $ac_c" 1>&6 | 6177 echo $ac_n "(cached) $ac_c" 1>&6 |
6145 else | 6178 else |
6146 cat > conftest.$ac_ext <<EOF | 6179 cat > conftest.$ac_ext <<EOF |
6147 #line 6148 "configure" | 6180 #line 6181 "configure" |
6148 #include "confdefs.h" | 6181 #include "confdefs.h" |
6149 #include <$ac_hdr> | 6182 #include <$ac_hdr> |
6150 EOF | 6183 EOF |
6151 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6152 { (eval echo configure:6153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6185 { (eval echo configure:6186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6153 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6154 if test -z "$ac_err"; then | 6187 if test -z "$ac_err"; then |
6155 rm -rf conftest* | 6188 rm -rf conftest* |
6156 eval "ac_cv_header_$ac_safe=yes" | 6189 eval "ac_cv_header_$ac_safe=yes" |
6157 else | 6190 else |
6176 done | 6209 done |
6177 | 6210 |
6178 for ac_func in alarm | 6211 for ac_func in alarm |
6179 do | 6212 do |
6180 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6213 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6181 echo "configure:6182: checking for $ac_func" >&5 | 6214 echo "configure:6215: checking for $ac_func" >&5 |
6182 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6215 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6183 echo $ac_n "(cached) $ac_c" 1>&6 | 6216 echo $ac_n "(cached) $ac_c" 1>&6 |
6184 else | 6217 else |
6185 cat > conftest.$ac_ext <<EOF | 6218 cat > conftest.$ac_ext <<EOF |
6186 #line 6187 "configure" | 6219 #line 6220 "configure" |
6187 #include "confdefs.h" | 6220 #include "confdefs.h" |
6188 /* System header to define __stub macros and hopefully few prototypes, | 6221 /* System header to define __stub macros and hopefully few prototypes, |
6189 which can conflict with char $ac_func(); below. */ | 6222 which can conflict with char $ac_func(); below. */ |
6190 #include <assert.h> | 6223 #include <assert.h> |
6191 /* Override any gcc2 internal prototype to avoid an error. */ | 6224 /* Override any gcc2 internal prototype to avoid an error. */ |
6204 $ac_func(); | 6237 $ac_func(); |
6205 #endif | 6238 #endif |
6206 | 6239 |
6207 ; return 0; } | 6240 ; return 0; } |
6208 EOF | 6241 EOF |
6209 if { (eval echo configure:6210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6242 if { (eval echo configure:6243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6210 rm -rf conftest* | 6243 rm -rf conftest* |
6211 eval "ac_cv_func_$ac_func=yes" | 6244 eval "ac_cv_func_$ac_func=yes" |
6212 else | 6245 else |
6213 echo "configure: failed program was:" >&5 | 6246 echo "configure: failed program was:" >&5 |
6214 cat conftest.$ac_ext >&5 | 6247 cat conftest.$ac_ext >&5 |
6229 echo "$ac_t""no" 1>&6 | 6262 echo "$ac_t""no" 1>&6 |
6230 fi | 6263 fi |
6231 done | 6264 done |
6232 | 6265 |
6233 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 | 6266 echo $ac_n "checking for working mktime""... $ac_c" 1>&6 |
6234 echo "configure:6235: checking for working mktime" >&5 | 6267 echo "configure:6268: checking for working mktime" >&5 |
6235 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then | 6268 if eval "test \"`echo '$''{'ac_cv_func_working_mktime'+set}'`\" = set"; then |
6236 echo $ac_n "(cached) $ac_c" 1>&6 | 6269 echo $ac_n "(cached) $ac_c" 1>&6 |
6237 else | 6270 else |
6238 if test "$cross_compiling" = yes; then | 6271 if test "$cross_compiling" = yes; then |
6239 ac_cv_func_working_mktime=no | 6272 ac_cv_func_working_mktime=no |
6240 else | 6273 else |
6241 cat > conftest.$ac_ext <<EOF | 6274 cat > conftest.$ac_ext <<EOF |
6242 #line 6243 "configure" | 6275 #line 6276 "configure" |
6243 #include "confdefs.h" | 6276 #include "confdefs.h" |
6244 /* Test program from Paul Eggert (eggert@twinsun.com) | 6277 /* Test program from Paul Eggert (eggert@twinsun.com) |
6245 and Tony Leneis (tony@plaza.ds.adp.com). */ | 6278 and Tony Leneis (tony@plaza.ds.adp.com). */ |
6246 #if TIME_WITH_SYS_TIME | 6279 #if TIME_WITH_SYS_TIME |
6247 # include <sys/time.h> | 6280 # include <sys/time.h> |
6386 irix_6_4_bug (); | 6419 irix_6_4_bug (); |
6387 spring_forward_gap (); | 6420 spring_forward_gap (); |
6388 exit (0); | 6421 exit (0); |
6389 } | 6422 } |
6390 EOF | 6423 EOF |
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 | 6424 if { (eval echo configure:6425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
6392 then | 6425 then |
6393 ac_cv_func_working_mktime=yes | 6426 ac_cv_func_working_mktime=yes |
6394 else | 6427 else |
6395 echo "configure: failed program was:" >&5 | 6428 echo "configure: failed program was:" >&5 |
6396 cat conftest.$ac_ext >&5 | 6429 cat conftest.$ac_ext >&5 |
6418 | 6451 |
6419 # Some systems with -lutil have (and need) -lkvm as well, some do not. | 6452 # Some systems with -lutil have (and need) -lkvm as well, some do not. |
6420 # On Solaris, -lkvm requires nlist from -lelf, so check that first | 6453 # On Solaris, -lkvm requires nlist from -lelf, so check that first |
6421 # to get the right answer into the cache. | 6454 # to get the right answer into the cache. |
6422 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 | 6455 echo $ac_n "checking for elf_begin in -lelf""... $ac_c" 1>&6 |
6423 echo "configure:6424: checking for elf_begin in -lelf" >&5 | 6456 echo "configure:6457: checking for elf_begin in -lelf" >&5 |
6424 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` | 6457 ac_lib_var=`echo elf'_'elf_begin | sed 'y%./+-%__p_%'` |
6425 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6458 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6426 echo $ac_n "(cached) $ac_c" 1>&6 | 6459 echo $ac_n "(cached) $ac_c" 1>&6 |
6427 else | 6460 else |
6428 ac_save_LIBS="$LIBS" | 6461 ac_save_LIBS="$LIBS" |
6429 LIBS="-lelf $LIBS" | 6462 LIBS="-lelf $LIBS" |
6430 cat > conftest.$ac_ext <<EOF | 6463 cat > conftest.$ac_ext <<EOF |
6431 #line 6432 "configure" | 6464 #line 6465 "configure" |
6432 #include "confdefs.h" | 6465 #include "confdefs.h" |
6433 /* Override any gcc2 internal prototype to avoid an error. */ | 6466 /* Override any gcc2 internal prototype to avoid an error. */ |
6434 /* We use char because int might match the return type of a gcc2 | 6467 /* We use char because int might match the return type of a gcc2 |
6435 builtin and then its argument prototype would still apply. */ | 6468 builtin and then its argument prototype would still apply. */ |
6436 char elf_begin(); | 6469 char elf_begin(); |
6437 | 6470 |
6438 int main() { | 6471 int main() { |
6439 elf_begin() | 6472 elf_begin() |
6440 ; return 0; } | 6473 ; return 0; } |
6441 EOF | 6474 EOF |
6442 if { (eval echo configure:6443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6475 if { (eval echo configure:6476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6443 rm -rf conftest* | 6476 rm -rf conftest* |
6444 eval "ac_cv_lib_$ac_lib_var=yes" | 6477 eval "ac_cv_lib_$ac_lib_var=yes" |
6445 else | 6478 else |
6446 echo "configure: failed program was:" >&5 | 6479 echo "configure: failed program was:" >&5 |
6447 cat conftest.$ac_ext >&5 | 6480 cat conftest.$ac_ext >&5 |
6458 else | 6491 else |
6459 echo "$ac_t""no" 1>&6 | 6492 echo "$ac_t""no" 1>&6 |
6460 fi | 6493 fi |
6461 | 6494 |
6462 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 | 6495 echo $ac_n "checking for kvm_open in -lkvm""... $ac_c" 1>&6 |
6463 echo "configure:6464: checking for kvm_open in -lkvm" >&5 | 6496 echo "configure:6497: checking for kvm_open in -lkvm" >&5 |
6464 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` | 6497 ac_lib_var=`echo kvm'_'kvm_open | sed 'y%./+-%__p_%'` |
6465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6466 echo $ac_n "(cached) $ac_c" 1>&6 | 6499 echo $ac_n "(cached) $ac_c" 1>&6 |
6467 else | 6500 else |
6468 ac_save_LIBS="$LIBS" | 6501 ac_save_LIBS="$LIBS" |
6469 LIBS="-lkvm $LIBS" | 6502 LIBS="-lkvm $LIBS" |
6470 cat > conftest.$ac_ext <<EOF | 6503 cat > conftest.$ac_ext <<EOF |
6471 #line 6472 "configure" | 6504 #line 6505 "configure" |
6472 #include "confdefs.h" | 6505 #include "confdefs.h" |
6473 /* Override any gcc2 internal prototype to avoid an error. */ | 6506 /* Override any gcc2 internal prototype to avoid an error. */ |
6474 /* We use char because int might match the return type of a gcc2 | 6507 /* We use char because int might match the return type of a gcc2 |
6475 builtin and then its argument prototype would still apply. */ | 6508 builtin and then its argument prototype would still apply. */ |
6476 char kvm_open(); | 6509 char kvm_open(); |
6477 | 6510 |
6478 int main() { | 6511 int main() { |
6479 kvm_open() | 6512 kvm_open() |
6480 ; return 0; } | 6513 ; return 0; } |
6481 EOF | 6514 EOF |
6482 if { (eval echo configure:6483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6515 if { (eval echo configure:6516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6483 rm -rf conftest* | 6516 rm -rf conftest* |
6484 eval "ac_cv_lib_$ac_lib_var=yes" | 6517 eval "ac_cv_lib_$ac_lib_var=yes" |
6485 else | 6518 else |
6486 echo "configure: failed program was:" >&5 | 6519 echo "configure: failed program was:" >&5 |
6487 cat conftest.$ac_ext >&5 | 6520 cat conftest.$ac_ext >&5 |
6499 echo "$ac_t""no" 1>&6 | 6532 echo "$ac_t""no" 1>&6 |
6500 fi | 6533 fi |
6501 | 6534 |
6502 # Check for the 4.4BSD definition of getloadavg. | 6535 # Check for the 4.4BSD definition of getloadavg. |
6503 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 | 6536 echo $ac_n "checking for getloadavg in -lutil""... $ac_c" 1>&6 |
6504 echo "configure:6505: checking for getloadavg in -lutil" >&5 | 6537 echo "configure:6538: checking for getloadavg in -lutil" >&5 |
6505 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` | 6538 ac_lib_var=`echo util'_'getloadavg | sed 'y%./+-%__p_%'` |
6506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6539 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6507 echo $ac_n "(cached) $ac_c" 1>&6 | 6540 echo $ac_n "(cached) $ac_c" 1>&6 |
6508 else | 6541 else |
6509 ac_save_LIBS="$LIBS" | 6542 ac_save_LIBS="$LIBS" |
6510 LIBS="-lutil $LIBS" | 6543 LIBS="-lutil $LIBS" |
6511 cat > conftest.$ac_ext <<EOF | 6544 cat > conftest.$ac_ext <<EOF |
6512 #line 6513 "configure" | 6545 #line 6546 "configure" |
6513 #include "confdefs.h" | 6546 #include "confdefs.h" |
6514 /* Override any gcc2 internal prototype to avoid an error. */ | 6547 /* Override any gcc2 internal prototype to avoid an error. */ |
6515 /* We use char because int might match the return type of a gcc2 | 6548 /* We use char because int might match the return type of a gcc2 |
6516 builtin and then its argument prototype would still apply. */ | 6549 builtin and then its argument prototype would still apply. */ |
6517 char getloadavg(); | 6550 char getloadavg(); |
6518 | 6551 |
6519 int main() { | 6552 int main() { |
6520 getloadavg() | 6553 getloadavg() |
6521 ; return 0; } | 6554 ; return 0; } |
6522 EOF | 6555 EOF |
6523 if { (eval echo configure:6524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6556 if { (eval echo configure:6557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6524 rm -rf conftest* | 6557 rm -rf conftest* |
6525 eval "ac_cv_lib_$ac_lib_var=yes" | 6558 eval "ac_cv_lib_$ac_lib_var=yes" |
6526 else | 6559 else |
6527 echo "configure: failed program was:" >&5 | 6560 echo "configure: failed program was:" >&5 |
6528 cat conftest.$ac_ext >&5 | 6561 cat conftest.$ac_ext >&5 |
6544 if test $ac_have_func = no; then | 6577 if test $ac_have_func = no; then |
6545 # There is a commonly available library for RS/6000 AIX. | 6578 # There is a commonly available library for RS/6000 AIX. |
6546 # Since it is not a standard part of AIX, it might be installed locally. | 6579 # Since it is not a standard part of AIX, it might be installed locally. |
6547 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" | 6580 ac_getloadavg_LIBS="$LIBS"; LIBS="-L/usr/local/lib $LIBS" |
6548 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 | 6581 echo $ac_n "checking for getloadavg in -lgetloadavg""... $ac_c" 1>&6 |
6549 echo "configure:6550: checking for getloadavg in -lgetloadavg" >&5 | 6582 echo "configure:6583: checking for getloadavg in -lgetloadavg" >&5 |
6550 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` | 6583 ac_lib_var=`echo getloadavg'_'getloadavg | sed 'y%./+-%__p_%'` |
6551 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6584 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6552 echo $ac_n "(cached) $ac_c" 1>&6 | 6585 echo $ac_n "(cached) $ac_c" 1>&6 |
6553 else | 6586 else |
6554 ac_save_LIBS="$LIBS" | 6587 ac_save_LIBS="$LIBS" |
6555 LIBS="-lgetloadavg $LIBS" | 6588 LIBS="-lgetloadavg $LIBS" |
6556 cat > conftest.$ac_ext <<EOF | 6589 cat > conftest.$ac_ext <<EOF |
6557 #line 6558 "configure" | 6590 #line 6591 "configure" |
6558 #include "confdefs.h" | 6591 #include "confdefs.h" |
6559 /* Override any gcc2 internal prototype to avoid an error. */ | 6592 /* Override any gcc2 internal prototype to avoid an error. */ |
6560 /* We use char because int might match the return type of a gcc2 | 6593 /* We use char because int might match the return type of a gcc2 |
6561 builtin and then its argument prototype would still apply. */ | 6594 builtin and then its argument prototype would still apply. */ |
6562 char getloadavg(); | 6595 char getloadavg(); |
6563 | 6596 |
6564 int main() { | 6597 int main() { |
6565 getloadavg() | 6598 getloadavg() |
6566 ; return 0; } | 6599 ; return 0; } |
6567 EOF | 6600 EOF |
6568 if { (eval echo configure:6569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6601 if { (eval echo configure:6602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6569 rm -rf conftest* | 6602 rm -rf conftest* |
6570 eval "ac_cv_lib_$ac_lib_var=yes" | 6603 eval "ac_cv_lib_$ac_lib_var=yes" |
6571 else | 6604 else |
6572 echo "configure: failed program was:" >&5 | 6605 echo "configure: failed program was:" >&5 |
6573 cat conftest.$ac_ext >&5 | 6606 cat conftest.$ac_ext >&5 |
6590 | 6623 |
6591 # Make sure it is really in the library, if we think we found it. | 6624 # Make sure it is really in the library, if we think we found it. |
6592 for ac_func in getloadavg | 6625 for ac_func in getloadavg |
6593 do | 6626 do |
6594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 6627 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
6595 echo "configure:6596: checking for $ac_func" >&5 | 6628 echo "configure:6629: checking for $ac_func" >&5 |
6596 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 6629 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
6597 echo $ac_n "(cached) $ac_c" 1>&6 | 6630 echo $ac_n "(cached) $ac_c" 1>&6 |
6598 else | 6631 else |
6599 cat > conftest.$ac_ext <<EOF | 6632 cat > conftest.$ac_ext <<EOF |
6600 #line 6601 "configure" | 6633 #line 6634 "configure" |
6601 #include "confdefs.h" | 6634 #include "confdefs.h" |
6602 /* System header to define __stub macros and hopefully few prototypes, | 6635 /* System header to define __stub macros and hopefully few prototypes, |
6603 which can conflict with char $ac_func(); below. */ | 6636 which can conflict with char $ac_func(); below. */ |
6604 #include <assert.h> | 6637 #include <assert.h> |
6605 /* Override any gcc2 internal prototype to avoid an error. */ | 6638 /* Override any gcc2 internal prototype to avoid an error. */ |
6618 $ac_func(); | 6651 $ac_func(); |
6619 #endif | 6652 #endif |
6620 | 6653 |
6621 ; return 0; } | 6654 ; return 0; } |
6622 EOF | 6655 EOF |
6623 if { (eval echo configure:6624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6656 if { (eval echo configure:6657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6624 rm -rf conftest* | 6657 rm -rf conftest* |
6625 eval "ac_cv_func_$ac_func=yes" | 6658 eval "ac_cv_func_$ac_func=yes" |
6626 else | 6659 else |
6627 echo "configure: failed program was:" >&5 | 6660 echo "configure: failed program was:" >&5 |
6628 cat conftest.$ac_ext >&5 | 6661 cat conftest.$ac_ext >&5 |
6656 else | 6689 else |
6657 # Figure out what our getloadavg.c needs. | 6690 # Figure out what our getloadavg.c needs. |
6658 ac_have_func=no | 6691 ac_have_func=no |
6659 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` | 6692 ac_safe=`echo "sys/dg_sys_info.h" | sed 'y%./+-%__p_%'` |
6660 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 | 6693 echo $ac_n "checking for sys/dg_sys_info.h""... $ac_c" 1>&6 |
6661 echo "configure:6662: checking for sys/dg_sys_info.h" >&5 | 6694 echo "configure:6695: checking for sys/dg_sys_info.h" >&5 |
6662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6695 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6663 echo $ac_n "(cached) $ac_c" 1>&6 | 6696 echo $ac_n "(cached) $ac_c" 1>&6 |
6664 else | 6697 else |
6665 cat > conftest.$ac_ext <<EOF | 6698 cat > conftest.$ac_ext <<EOF |
6666 #line 6667 "configure" | 6699 #line 6700 "configure" |
6667 #include "confdefs.h" | 6700 #include "confdefs.h" |
6668 #include <sys/dg_sys_info.h> | 6701 #include <sys/dg_sys_info.h> |
6669 EOF | 6702 EOF |
6670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6703 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6671 { (eval echo configure:6672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6704 { (eval echo configure:6705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6705 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6673 if test -z "$ac_err"; then | 6706 if test -z "$ac_err"; then |
6674 rm -rf conftest* | 6707 rm -rf conftest* |
6675 eval "ac_cv_header_$ac_safe=yes" | 6708 eval "ac_cv_header_$ac_safe=yes" |
6676 else | 6709 else |
6687 ac_have_func=yes; cat >> confdefs.h <<\EOF | 6720 ac_have_func=yes; cat >> confdefs.h <<\EOF |
6688 #define DGUX 1 | 6721 #define DGUX 1 |
6689 EOF | 6722 EOF |
6690 | 6723 |
6691 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 | 6724 echo $ac_n "checking for dg_sys_info in -ldgc""... $ac_c" 1>&6 |
6692 echo "configure:6693: checking for dg_sys_info in -ldgc" >&5 | 6725 echo "configure:6726: checking for dg_sys_info in -ldgc" >&5 |
6693 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` | 6726 ac_lib_var=`echo dgc'_'dg_sys_info | sed 'y%./+-%__p_%'` |
6694 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 6727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
6695 echo $ac_n "(cached) $ac_c" 1>&6 | 6728 echo $ac_n "(cached) $ac_c" 1>&6 |
6696 else | 6729 else |
6697 ac_save_LIBS="$LIBS" | 6730 ac_save_LIBS="$LIBS" |
6698 LIBS="-ldgc $LIBS" | 6731 LIBS="-ldgc $LIBS" |
6699 cat > conftest.$ac_ext <<EOF | 6732 cat > conftest.$ac_ext <<EOF |
6700 #line 6701 "configure" | 6733 #line 6734 "configure" |
6701 #include "confdefs.h" | 6734 #include "confdefs.h" |
6702 /* Override any gcc2 internal prototype to avoid an error. */ | 6735 /* Override any gcc2 internal prototype to avoid an error. */ |
6703 /* We use char because int might match the return type of a gcc2 | 6736 /* We use char because int might match the return type of a gcc2 |
6704 builtin and then its argument prototype would still apply. */ | 6737 builtin and then its argument prototype would still apply. */ |
6705 char dg_sys_info(); | 6738 char dg_sys_info(); |
6706 | 6739 |
6707 int main() { | 6740 int main() { |
6708 dg_sys_info() | 6741 dg_sys_info() |
6709 ; return 0; } | 6742 ; return 0; } |
6710 EOF | 6743 EOF |
6711 if { (eval echo configure:6712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 6744 if { (eval echo configure:6745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
6712 rm -rf conftest* | 6745 rm -rf conftest* |
6713 eval "ac_cv_lib_$ac_lib_var=yes" | 6746 eval "ac_cv_lib_$ac_lib_var=yes" |
6714 else | 6747 else |
6715 echo "configure: failed program was:" >&5 | 6748 echo "configure: failed program was:" >&5 |
6716 cat conftest.$ac_ext >&5 | 6749 cat conftest.$ac_ext >&5 |
6751 fi | 6784 fi |
6752 | 6785 |
6753 if test $ac_have_func = no; then | 6786 if test $ac_have_func = no; then |
6754 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` | 6787 ac_safe=`echo "inq_stats/cpustats.h" | sed 'y%./+-%__p_%'` |
6755 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 | 6788 echo $ac_n "checking for inq_stats/cpustats.h""... $ac_c" 1>&6 |
6756 echo "configure:6757: checking for inq_stats/cpustats.h" >&5 | 6789 echo "configure:6790: checking for inq_stats/cpustats.h" >&5 |
6757 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6790 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6758 echo $ac_n "(cached) $ac_c" 1>&6 | 6791 echo $ac_n "(cached) $ac_c" 1>&6 |
6759 else | 6792 else |
6760 cat > conftest.$ac_ext <<EOF | 6793 cat > conftest.$ac_ext <<EOF |
6761 #line 6762 "configure" | 6794 #line 6795 "configure" |
6762 #include "confdefs.h" | 6795 #include "confdefs.h" |
6763 #include <inq_stats/cpustats.h> | 6796 #include <inq_stats/cpustats.h> |
6764 EOF | 6797 EOF |
6765 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6766 { (eval echo configure:6767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6799 { (eval echo configure:6800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6767 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6768 if test -z "$ac_err"; then | 6801 if test -z "$ac_err"; then |
6769 rm -rf conftest* | 6802 rm -rf conftest* |
6770 eval "ac_cv_header_$ac_safe=yes" | 6803 eval "ac_cv_header_$ac_safe=yes" |
6771 else | 6804 else |
6794 fi | 6827 fi |
6795 | 6828 |
6796 if test $ac_have_func = no; then | 6829 if test $ac_have_func = no; then |
6797 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` | 6830 ac_safe=`echo "sys/cpustats.h" | sed 'y%./+-%__p_%'` |
6798 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 | 6831 echo $ac_n "checking for sys/cpustats.h""... $ac_c" 1>&6 |
6799 echo "configure:6800: checking for sys/cpustats.h" >&5 | 6832 echo "configure:6833: checking for sys/cpustats.h" >&5 |
6800 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6801 echo $ac_n "(cached) $ac_c" 1>&6 | 6834 echo $ac_n "(cached) $ac_c" 1>&6 |
6802 else | 6835 else |
6803 cat > conftest.$ac_ext <<EOF | 6836 cat > conftest.$ac_ext <<EOF |
6804 #line 6805 "configure" | 6837 #line 6838 "configure" |
6805 #include "confdefs.h" | 6838 #include "confdefs.h" |
6806 #include <sys/cpustats.h> | 6839 #include <sys/cpustats.h> |
6807 EOF | 6840 EOF |
6808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6809 { (eval echo configure:6810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6842 { (eval echo configure:6843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6811 if test -z "$ac_err"; then | 6844 if test -z "$ac_err"; then |
6812 rm -rf conftest* | 6845 rm -rf conftest* |
6813 eval "ac_cv_header_$ac_safe=yes" | 6846 eval "ac_cv_header_$ac_safe=yes" |
6814 else | 6847 else |
6835 if test $ac_have_func = no; then | 6868 if test $ac_have_func = no; then |
6836 for ac_hdr in mach/mach.h | 6869 for ac_hdr in mach/mach.h |
6837 do | 6870 do |
6838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 6871 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
6839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 6872 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
6840 echo "configure:6841: checking for $ac_hdr" >&5 | 6873 echo "configure:6874: checking for $ac_hdr" >&5 |
6841 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6874 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6842 echo $ac_n "(cached) $ac_c" 1>&6 | 6875 echo $ac_n "(cached) $ac_c" 1>&6 |
6843 else | 6876 else |
6844 cat > conftest.$ac_ext <<EOF | 6877 cat > conftest.$ac_ext <<EOF |
6845 #line 6846 "configure" | 6878 #line 6879 "configure" |
6846 #include "confdefs.h" | 6879 #include "confdefs.h" |
6847 #include <$ac_hdr> | 6880 #include <$ac_hdr> |
6848 EOF | 6881 EOF |
6849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6882 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6850 { (eval echo configure:6851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6883 { (eval echo configure:6884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6884 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6852 if test -z "$ac_err"; then | 6885 if test -z "$ac_err"; then |
6853 rm -rf conftest* | 6886 rm -rf conftest* |
6854 eval "ac_cv_header_$ac_safe=yes" | 6887 eval "ac_cv_header_$ac_safe=yes" |
6855 else | 6888 else |
6875 | 6908 |
6876 fi | 6909 fi |
6877 | 6910 |
6878 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` | 6911 ac_safe=`echo "nlist.h" | sed 'y%./+-%__p_%'` |
6879 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 | 6912 echo $ac_n "checking for nlist.h""... $ac_c" 1>&6 |
6880 echo "configure:6881: checking for nlist.h" >&5 | 6913 echo "configure:6914: checking for nlist.h" >&5 |
6881 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 6914 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
6882 echo $ac_n "(cached) $ac_c" 1>&6 | 6915 echo $ac_n "(cached) $ac_c" 1>&6 |
6883 else | 6916 else |
6884 cat > conftest.$ac_ext <<EOF | 6917 cat > conftest.$ac_ext <<EOF |
6885 #line 6886 "configure" | 6918 #line 6919 "configure" |
6886 #include "confdefs.h" | 6919 #include "confdefs.h" |
6887 #include <nlist.h> | 6920 #include <nlist.h> |
6888 EOF | 6921 EOF |
6889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 6922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
6890 { (eval echo configure:6891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 6923 { (eval echo configure:6924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
6891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 6924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
6892 if test -z "$ac_err"; then | 6925 if test -z "$ac_err"; then |
6893 rm -rf conftest* | 6926 rm -rf conftest* |
6894 eval "ac_cv_header_$ac_safe=yes" | 6927 eval "ac_cv_header_$ac_safe=yes" |
6895 else | 6928 else |
6906 cat >> confdefs.h <<\EOF | 6939 cat >> confdefs.h <<\EOF |
6907 #define NLIST_STRUCT 1 | 6940 #define NLIST_STRUCT 1 |
6908 EOF | 6941 EOF |
6909 | 6942 |
6910 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 | 6943 echo $ac_n "checking for n_un in struct nlist""... $ac_c" 1>&6 |
6911 echo "configure:6912: checking for n_un in struct nlist" >&5 | 6944 echo "configure:6945: checking for n_un in struct nlist" >&5 |
6912 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then | 6945 if eval "test \"`echo '$''{'ac_cv_struct_nlist_n_un'+set}'`\" = set"; then |
6913 echo $ac_n "(cached) $ac_c" 1>&6 | 6946 echo $ac_n "(cached) $ac_c" 1>&6 |
6914 else | 6947 else |
6915 cat > conftest.$ac_ext <<EOF | 6948 cat > conftest.$ac_ext <<EOF |
6916 #line 6917 "configure" | 6949 #line 6950 "configure" |
6917 #include "confdefs.h" | 6950 #include "confdefs.h" |
6918 #include <nlist.h> | 6951 #include <nlist.h> |
6919 int main() { | 6952 int main() { |
6920 struct nlist n; n.n_un.n_name = 0; | 6953 struct nlist n; n.n_un.n_name = 0; |
6921 ; return 0; } | 6954 ; return 0; } |
6922 EOF | 6955 EOF |
6923 if { (eval echo configure:6924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 6956 if { (eval echo configure:6957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
6924 rm -rf conftest* | 6957 rm -rf conftest* |
6925 ac_cv_struct_nlist_n_un=yes | 6958 ac_cv_struct_nlist_n_un=yes |
6926 else | 6959 else |
6927 echo "configure: failed program was:" >&5 | 6960 echo "configure: failed program was:" >&5 |
6928 cat conftest.$ac_ext >&5 | 6961 cat conftest.$ac_ext >&5 |
6945 fi | 6978 fi |
6946 fi # Do not have getloadavg in system libraries. | 6979 fi # Do not have getloadavg in system libraries. |
6947 | 6980 |
6948 # Some definitions of getloadavg require that the program be installed setgid. | 6981 # Some definitions of getloadavg require that the program be installed setgid. |
6949 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 | 6982 echo $ac_n "checking whether getloadavg requires setgid""... $ac_c" 1>&6 |
6950 echo "configure:6951: checking whether getloadavg requires setgid" >&5 | 6983 echo "configure:6984: checking whether getloadavg requires setgid" >&5 |
6951 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then | 6984 if eval "test \"`echo '$''{'ac_cv_func_getloadavg_setgid'+set}'`\" = set"; then |
6952 echo $ac_n "(cached) $ac_c" 1>&6 | 6985 echo $ac_n "(cached) $ac_c" 1>&6 |
6953 else | 6986 else |
6954 cat > conftest.$ac_ext <<EOF | 6987 cat > conftest.$ac_ext <<EOF |
6955 #line 6956 "configure" | 6988 #line 6989 "configure" |
6956 #include "confdefs.h" | 6989 #include "confdefs.h" |
6957 #include "$srcdir/getloadavg.c" | 6990 #include "$srcdir/getloadavg.c" |
6958 #ifdef LDAV_PRIVILEGED | 6991 #ifdef LDAV_PRIVILEGED |
6959 Yowza Am I SETGID yet | 6992 Yowza Am I SETGID yet |
6960 #endif | 6993 #endif |
6981 NEED_SETGID=false | 7014 NEED_SETGID=false |
6982 fi | 7015 fi |
6983 | 7016 |
6984 if test $ac_cv_func_getloadavg_setgid = yes; then | 7017 if test $ac_cv_func_getloadavg_setgid = yes; then |
6985 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 | 7018 echo $ac_n "checking group of /dev/kmem""... $ac_c" 1>&6 |
6986 echo "configure:6987: checking group of /dev/kmem" >&5 | 7019 echo "configure:7020: checking group of /dev/kmem" >&5 |
6987 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then | 7020 if eval "test \"`echo '$''{'ac_cv_group_kmem'+set}'`\" = set"; then |
6988 echo $ac_n "(cached) $ac_c" 1>&6 | 7021 echo $ac_n "(cached) $ac_c" 1>&6 |
6989 else | 7022 else |
6990 # On Solaris, /dev/kmem is a symlink. Get info on the real file. | 7023 # On Solaris, /dev/kmem is a symlink. Get info on the real file. |
6991 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` | 7024 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` |
7002 KMEM_GROUP=$ac_cv_group_kmem | 7035 KMEM_GROUP=$ac_cv_group_kmem |
7003 fi | 7036 fi |
7004 | 7037 |
7005 | 7038 |
7006 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 | 7039 echo $ac_n "checking for _LARGEFILE_SOURCE value needed for large files""... $ac_c" 1>&6 |
7007 echo "configure:7008: checking for _LARGEFILE_SOURCE value needed for large files" >&5 | 7040 echo "configure:7041: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
7008 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then | 7041 if eval "test \"`echo '$''{'ac_cv_sys_largefile_source'+set}'`\" = set"; then |
7009 echo $ac_n "(cached) $ac_c" 1>&6 | 7042 echo $ac_n "(cached) $ac_c" 1>&6 |
7010 else | 7043 else |
7011 ac_cv_sys_largefile_source=no | 7044 ac_cv_sys_largefile_source=no |
7012 cat > conftest.$ac_ext <<EOF | 7045 cat > conftest.$ac_ext <<EOF |
7013 #line 7014 "configure" | 7046 #line 7047 "configure" |
7014 #include "confdefs.h" | 7047 #include "confdefs.h" |
7015 #include <stdio.h> | 7048 #include <stdio.h> |
7016 int main() { | 7049 int main() { |
7017 return !fseeko; | 7050 return !fseeko; |
7018 ; return 0; } | 7051 ; return 0; } |
7019 EOF | 7052 EOF |
7020 if { (eval echo configure:7021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 7053 if { (eval echo configure:7054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7021 : | 7054 : |
7022 else | 7055 else |
7023 echo "configure: failed program was:" >&5 | 7056 echo "configure: failed program was:" >&5 |
7024 cat conftest.$ac_ext >&5 | 7057 cat conftest.$ac_ext >&5 |
7025 rm -rf conftest* | 7058 rm -rf conftest* |
7026 cat > conftest.$ac_ext <<EOF | 7059 cat > conftest.$ac_ext <<EOF |
7027 #line 7028 "configure" | 7060 #line 7061 "configure" |
7028 #include "confdefs.h" | 7061 #include "confdefs.h" |
7029 #define _LARGEFILE_SOURCE 1 | 7062 #define _LARGEFILE_SOURCE 1 |
7030 #include <stdio.h> | 7063 #include <stdio.h> |
7031 | 7064 |
7032 int main() { | 7065 int main() { |
7033 return !fseeko; | 7066 return !fseeko; |
7034 ; return 0; } | 7067 ; return 0; } |
7035 EOF | 7068 EOF |
7036 if { (eval echo configure:7037: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 7069 if { (eval echo configure:7070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
7037 rm -rf conftest* | 7070 rm -rf conftest* |
7038 ac_cv_sys_largefile_source=1 | 7071 ac_cv_sys_largefile_source=1 |
7039 else | 7072 else |
7040 echo "configure: failed program was:" >&5 | 7073 echo "configure: failed program was:" >&5 |
7041 cat conftest.$ac_ext >&5 | 7074 cat conftest.$ac_ext >&5 |
7055 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug | 7088 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
7056 # in glibc 2.1.3, but that breaks too many other things. | 7089 # in glibc 2.1.3, but that breaks too many other things. |
7057 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. | 7090 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
7058 | 7091 |
7059 echo $ac_n "checking for fseeko""... $ac_c" 1>&6 | 7092 echo $ac_n "checking for fseeko""... $ac_c" 1>&6 |
7060 echo "configure:7061: checking for fseeko" >&5 | 7093 echo "configure:7094: checking for fseeko" >&5 |
7061 if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then | 7094 if eval "test \"`echo '$''{'ac_cv_func_fseeko'+set}'`\" = set"; then |
7062 echo $ac_n "(cached) $ac_c" 1>&6 | 7095 echo $ac_n "(cached) $ac_c" 1>&6 |
7063 else | 7096 else |
7064 ac_cv_func_fseeko=no | 7097 ac_cv_func_fseeko=no |
7065 cat > conftest.$ac_ext <<EOF | 7098 cat > conftest.$ac_ext <<EOF |
7066 #line 7067 "configure" | 7099 #line 7100 "configure" |
7067 #include "confdefs.h" | 7100 #include "confdefs.h" |
7068 #include <stdio.h> | 7101 #include <stdio.h> |
7069 int main() { | 7102 int main() { |
7070 return fseeko && fseeko (stdin, 0, 0); | 7103 return fseeko && fseeko (stdin, 0, 0); |
7071 ; return 0; } | 7104 ; return 0; } |
7072 EOF | 7105 EOF |
7073 if { (eval echo configure:7074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7106 if { (eval echo configure:7107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7074 rm -rf conftest* | 7107 rm -rf conftest* |
7075 ac_cv_func_fseeko=yes | 7108 ac_cv_func_fseeko=yes |
7076 else | 7109 else |
7077 echo "configure: failed program was:" >&5 | 7110 echo "configure: failed program was:" >&5 |
7078 cat conftest.$ac_ext >&5 | 7111 cat conftest.$ac_ext >&5 |
7090 | 7123 |
7091 # UNIX98 PTYs. | 7124 # UNIX98 PTYs. |
7092 for ac_func in grantpt | 7125 for ac_func in grantpt |
7093 do | 7126 do |
7094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 7127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
7095 echo "configure:7096: checking for $ac_func" >&5 | 7128 echo "configure:7129: checking for $ac_func" >&5 |
7096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 7129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7097 echo $ac_n "(cached) $ac_c" 1>&6 | 7130 echo $ac_n "(cached) $ac_c" 1>&6 |
7098 else | 7131 else |
7099 cat > conftest.$ac_ext <<EOF | 7132 cat > conftest.$ac_ext <<EOF |
7100 #line 7101 "configure" | 7133 #line 7134 "configure" |
7101 #include "confdefs.h" | 7134 #include "confdefs.h" |
7102 /* System header to define __stub macros and hopefully few prototypes, | 7135 /* System header to define __stub macros and hopefully few prototypes, |
7103 which can conflict with char $ac_func(); below. */ | 7136 which can conflict with char $ac_func(); below. */ |
7104 #include <assert.h> | 7137 #include <assert.h> |
7105 /* Override any gcc2 internal prototype to avoid an error. */ | 7138 /* Override any gcc2 internal prototype to avoid an error. */ |
7118 $ac_func(); | 7151 $ac_func(); |
7119 #endif | 7152 #endif |
7120 | 7153 |
7121 ; return 0; } | 7154 ; return 0; } |
7122 EOF | 7155 EOF |
7123 if { (eval echo configure:7124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7156 if { (eval echo configure:7157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7124 rm -rf conftest* | 7157 rm -rf conftest* |
7125 eval "ac_cv_func_$ac_func=yes" | 7158 eval "ac_cv_func_$ac_func=yes" |
7126 else | 7159 else |
7127 echo "configure: failed program was:" >&5 | 7160 echo "configure: failed program was:" >&5 |
7128 cat conftest.$ac_ext >&5 | 7161 cat conftest.$ac_ext >&5 |
7147 | 7180 |
7148 # PTY-related GNU extensions. | 7181 # PTY-related GNU extensions. |
7149 for ac_func in getpt | 7182 for ac_func in getpt |
7150 do | 7183 do |
7151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 7184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
7152 echo "configure:7153: checking for $ac_func" >&5 | 7185 echo "configure:7186: checking for $ac_func" >&5 |
7153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 7186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
7154 echo $ac_n "(cached) $ac_c" 1>&6 | 7187 echo $ac_n "(cached) $ac_c" 1>&6 |
7155 else | 7188 else |
7156 cat > conftest.$ac_ext <<EOF | 7189 cat > conftest.$ac_ext <<EOF |
7157 #line 7158 "configure" | 7190 #line 7191 "configure" |
7158 #include "confdefs.h" | 7191 #include "confdefs.h" |
7159 /* System header to define __stub macros and hopefully few prototypes, | 7192 /* System header to define __stub macros and hopefully few prototypes, |
7160 which can conflict with char $ac_func(); below. */ | 7193 which can conflict with char $ac_func(); below. */ |
7161 #include <assert.h> | 7194 #include <assert.h> |
7162 /* Override any gcc2 internal prototype to avoid an error. */ | 7195 /* Override any gcc2 internal prototype to avoid an error. */ |
7175 $ac_func(); | 7208 $ac_func(); |
7176 #endif | 7209 #endif |
7177 | 7210 |
7178 ; return 0; } | 7211 ; return 0; } |
7179 EOF | 7212 EOF |
7180 if { (eval echo configure:7181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7213 if { (eval echo configure:7214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7181 rm -rf conftest* | 7214 rm -rf conftest* |
7182 eval "ac_cv_func_$ac_func=yes" | 7215 eval "ac_cv_func_$ac_func=yes" |
7183 else | 7216 else |
7184 echo "configure: failed program was:" >&5 | 7217 echo "configure: failed program was:" >&5 |
7185 cat conftest.$ac_ext >&5 | 7218 cat conftest.$ac_ext >&5 |
7205 # Check this now, so that we will NOT find the above functions in ncurses. | 7238 # Check this now, so that we will NOT find the above functions in ncurses. |
7206 # That is because we have not set up to link ncurses in lib-src. | 7239 # That is because we have not set up to link ncurses in lib-src. |
7207 # It's better to believe a function is not available | 7240 # It's better to believe a function is not available |
7208 # than to expect to find it in ncurses. | 7241 # than to expect to find it in ncurses. |
7209 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 | 7242 echo $ac_n "checking for tparm in -lncurses""... $ac_c" 1>&6 |
7210 echo "configure:7211: checking for tparm in -lncurses" >&5 | 7243 echo "configure:7244: checking for tparm in -lncurses" >&5 |
7211 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` | 7244 ac_lib_var=`echo ncurses'_'tparm | sed 'y%./+-%__p_%'` |
7212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7245 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7213 echo $ac_n "(cached) $ac_c" 1>&6 | 7246 echo $ac_n "(cached) $ac_c" 1>&6 |
7214 else | 7247 else |
7215 ac_save_LIBS="$LIBS" | 7248 ac_save_LIBS="$LIBS" |
7216 LIBS="-lncurses $LIBS" | 7249 LIBS="-lncurses $LIBS" |
7217 cat > conftest.$ac_ext <<EOF | 7250 cat > conftest.$ac_ext <<EOF |
7218 #line 7219 "configure" | 7251 #line 7252 "configure" |
7219 #include "confdefs.h" | 7252 #include "confdefs.h" |
7220 /* Override any gcc2 internal prototype to avoid an error. */ | 7253 /* Override any gcc2 internal prototype to avoid an error. */ |
7221 /* We use char because int might match the return type of a gcc2 | 7254 /* We use char because int might match the return type of a gcc2 |
7222 builtin and then its argument prototype would still apply. */ | 7255 builtin and then its argument prototype would still apply. */ |
7223 char tparm(); | 7256 char tparm(); |
7224 | 7257 |
7225 int main() { | 7258 int main() { |
7226 tparm() | 7259 tparm() |
7227 ; return 0; } | 7260 ; return 0; } |
7228 EOF | 7261 EOF |
7229 if { (eval echo configure:7230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7262 if { (eval echo configure:7263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7230 rm -rf conftest* | 7263 rm -rf conftest* |
7231 eval "ac_cv_lib_$ac_lib_var=yes" | 7264 eval "ac_cv_lib_$ac_lib_var=yes" |
7232 else | 7265 else |
7233 echo "configure: failed program was:" >&5 | 7266 echo "configure: failed program was:" >&5 |
7234 cat conftest.$ac_ext >&5 | 7267 cat conftest.$ac_ext >&5 |
7255 | 7288 |
7256 | 7289 |
7257 # These tell us which Kerberos-related libraries to use. | 7290 # These tell us which Kerberos-related libraries to use. |
7258 if test "${with_kerberos+set}" = set; then | 7291 if test "${with_kerberos+set}" = set; then |
7259 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 | 7292 echo $ac_n "checking for com_err in -lcom_err""... $ac_c" 1>&6 |
7260 echo "configure:7261: checking for com_err in -lcom_err" >&5 | 7293 echo "configure:7294: checking for com_err in -lcom_err" >&5 |
7261 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` | 7294 ac_lib_var=`echo com_err'_'com_err | sed 'y%./+-%__p_%'` |
7262 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7263 echo $ac_n "(cached) $ac_c" 1>&6 | 7296 echo $ac_n "(cached) $ac_c" 1>&6 |
7264 else | 7297 else |
7265 ac_save_LIBS="$LIBS" | 7298 ac_save_LIBS="$LIBS" |
7266 LIBS="-lcom_err $LIBS" | 7299 LIBS="-lcom_err $LIBS" |
7267 cat > conftest.$ac_ext <<EOF | 7300 cat > conftest.$ac_ext <<EOF |
7268 #line 7269 "configure" | 7301 #line 7302 "configure" |
7269 #include "confdefs.h" | 7302 #include "confdefs.h" |
7270 /* Override any gcc2 internal prototype to avoid an error. */ | 7303 /* Override any gcc2 internal prototype to avoid an error. */ |
7271 /* We use char because int might match the return type of a gcc2 | 7304 /* We use char because int might match the return type of a gcc2 |
7272 builtin and then its argument prototype would still apply. */ | 7305 builtin and then its argument prototype would still apply. */ |
7273 char com_err(); | 7306 char com_err(); |
7274 | 7307 |
7275 int main() { | 7308 int main() { |
7276 com_err() | 7309 com_err() |
7277 ; return 0; } | 7310 ; return 0; } |
7278 EOF | 7311 EOF |
7279 if { (eval echo configure:7280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7312 if { (eval echo configure:7313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7280 rm -rf conftest* | 7313 rm -rf conftest* |
7281 eval "ac_cv_lib_$ac_lib_var=yes" | 7314 eval "ac_cv_lib_$ac_lib_var=yes" |
7282 else | 7315 else |
7283 echo "configure: failed program was:" >&5 | 7316 echo "configure: failed program was:" >&5 |
7284 cat conftest.$ac_ext >&5 | 7317 cat conftest.$ac_ext >&5 |
7302 else | 7335 else |
7303 echo "$ac_t""no" 1>&6 | 7336 echo "$ac_t""no" 1>&6 |
7304 fi | 7337 fi |
7305 | 7338 |
7306 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 | 7339 echo $ac_n "checking for mit_des_cbc_encrypt in -lk5crypto""... $ac_c" 1>&6 |
7307 echo "configure:7308: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 | 7340 echo "configure:7341: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
7308 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7341 ac_lib_var=`echo k5crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7310 echo $ac_n "(cached) $ac_c" 1>&6 | 7343 echo $ac_n "(cached) $ac_c" 1>&6 |
7311 else | 7344 else |
7312 ac_save_LIBS="$LIBS" | 7345 ac_save_LIBS="$LIBS" |
7313 LIBS="-lk5crypto $LIBS" | 7346 LIBS="-lk5crypto $LIBS" |
7314 cat > conftest.$ac_ext <<EOF | 7347 cat > conftest.$ac_ext <<EOF |
7315 #line 7316 "configure" | 7348 #line 7349 "configure" |
7316 #include "confdefs.h" | 7349 #include "confdefs.h" |
7317 /* Override any gcc2 internal prototype to avoid an error. */ | 7350 /* Override any gcc2 internal prototype to avoid an error. */ |
7318 /* We use char because int might match the return type of a gcc2 | 7351 /* We use char because int might match the return type of a gcc2 |
7319 builtin and then its argument prototype would still apply. */ | 7352 builtin and then its argument prototype would still apply. */ |
7320 char mit_des_cbc_encrypt(); | 7353 char mit_des_cbc_encrypt(); |
7321 | 7354 |
7322 int main() { | 7355 int main() { |
7323 mit_des_cbc_encrypt() | 7356 mit_des_cbc_encrypt() |
7324 ; return 0; } | 7357 ; return 0; } |
7325 EOF | 7358 EOF |
7326 if { (eval echo configure:7327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7359 if { (eval echo configure:7360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7327 rm -rf conftest* | 7360 rm -rf conftest* |
7328 eval "ac_cv_lib_$ac_lib_var=yes" | 7361 eval "ac_cv_lib_$ac_lib_var=yes" |
7329 else | 7362 else |
7330 echo "configure: failed program was:" >&5 | 7363 echo "configure: failed program was:" >&5 |
7331 cat conftest.$ac_ext >&5 | 7364 cat conftest.$ac_ext >&5 |
7349 else | 7382 else |
7350 echo "$ac_t""no" 1>&6 | 7383 echo "$ac_t""no" 1>&6 |
7351 fi | 7384 fi |
7352 | 7385 |
7353 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 | 7386 echo $ac_n "checking for mit_des_cbc_encrypt in -lcrypto""... $ac_c" 1>&6 |
7354 echo "configure:7355: checking for mit_des_cbc_encrypt in -lcrypto" >&5 | 7387 echo "configure:7388: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
7355 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7388 ac_lib_var=`echo crypto'_'mit_des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7357 echo $ac_n "(cached) $ac_c" 1>&6 | 7390 echo $ac_n "(cached) $ac_c" 1>&6 |
7358 else | 7391 else |
7359 ac_save_LIBS="$LIBS" | 7392 ac_save_LIBS="$LIBS" |
7360 LIBS="-lcrypto $LIBS" | 7393 LIBS="-lcrypto $LIBS" |
7361 cat > conftest.$ac_ext <<EOF | 7394 cat > conftest.$ac_ext <<EOF |
7362 #line 7363 "configure" | 7395 #line 7396 "configure" |
7363 #include "confdefs.h" | 7396 #include "confdefs.h" |
7364 /* Override any gcc2 internal prototype to avoid an error. */ | 7397 /* Override any gcc2 internal prototype to avoid an error. */ |
7365 /* We use char because int might match the return type of a gcc2 | 7398 /* We use char because int might match the return type of a gcc2 |
7366 builtin and then its argument prototype would still apply. */ | 7399 builtin and then its argument prototype would still apply. */ |
7367 char mit_des_cbc_encrypt(); | 7400 char mit_des_cbc_encrypt(); |
7368 | 7401 |
7369 int main() { | 7402 int main() { |
7370 mit_des_cbc_encrypt() | 7403 mit_des_cbc_encrypt() |
7371 ; return 0; } | 7404 ; return 0; } |
7372 EOF | 7405 EOF |
7373 if { (eval echo configure:7374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7406 if { (eval echo configure:7407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7374 rm -rf conftest* | 7407 rm -rf conftest* |
7375 eval "ac_cv_lib_$ac_lib_var=yes" | 7408 eval "ac_cv_lib_$ac_lib_var=yes" |
7376 else | 7409 else |
7377 echo "configure: failed program was:" >&5 | 7410 echo "configure: failed program was:" >&5 |
7378 cat conftest.$ac_ext >&5 | 7411 cat conftest.$ac_ext >&5 |
7396 else | 7429 else |
7397 echo "$ac_t""no" 1>&6 | 7430 echo "$ac_t""no" 1>&6 |
7398 fi | 7431 fi |
7399 | 7432 |
7400 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 | 7433 echo $ac_n "checking for krb5_init_context in -lkrb5""... $ac_c" 1>&6 |
7401 echo "configure:7402: checking for krb5_init_context in -lkrb5" >&5 | 7434 echo "configure:7435: checking for krb5_init_context in -lkrb5" >&5 |
7402 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` | 7435 ac_lib_var=`echo krb5'_'krb5_init_context | sed 'y%./+-%__p_%'` |
7403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7436 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7404 echo $ac_n "(cached) $ac_c" 1>&6 | 7437 echo $ac_n "(cached) $ac_c" 1>&6 |
7405 else | 7438 else |
7406 ac_save_LIBS="$LIBS" | 7439 ac_save_LIBS="$LIBS" |
7407 LIBS="-lkrb5 $LIBS" | 7440 LIBS="-lkrb5 $LIBS" |
7408 cat > conftest.$ac_ext <<EOF | 7441 cat > conftest.$ac_ext <<EOF |
7409 #line 7410 "configure" | 7442 #line 7443 "configure" |
7410 #include "confdefs.h" | 7443 #include "confdefs.h" |
7411 /* Override any gcc2 internal prototype to avoid an error. */ | 7444 /* Override any gcc2 internal prototype to avoid an error. */ |
7412 /* We use char because int might match the return type of a gcc2 | 7445 /* We use char because int might match the return type of a gcc2 |
7413 builtin and then its argument prototype would still apply. */ | 7446 builtin and then its argument prototype would still apply. */ |
7414 char krb5_init_context(); | 7447 char krb5_init_context(); |
7415 | 7448 |
7416 int main() { | 7449 int main() { |
7417 krb5_init_context() | 7450 krb5_init_context() |
7418 ; return 0; } | 7451 ; return 0; } |
7419 EOF | 7452 EOF |
7420 if { (eval echo configure:7421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7453 if { (eval echo configure:7454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7421 rm -rf conftest* | 7454 rm -rf conftest* |
7422 eval "ac_cv_lib_$ac_lib_var=yes" | 7455 eval "ac_cv_lib_$ac_lib_var=yes" |
7423 else | 7456 else |
7424 echo "configure: failed program was:" >&5 | 7457 echo "configure: failed program was:" >&5 |
7425 cat conftest.$ac_ext >&5 | 7458 cat conftest.$ac_ext >&5 |
7444 echo "$ac_t""no" 1>&6 | 7477 echo "$ac_t""no" 1>&6 |
7445 fi | 7478 fi |
7446 | 7479 |
7447 if test "${with_kerberos5+set}" != set; then | 7480 if test "${with_kerberos5+set}" != set; then |
7448 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 | 7481 echo $ac_n "checking for des_cbc_encrypt in -ldes425""... $ac_c" 1>&6 |
7449 echo "configure:7450: checking for des_cbc_encrypt in -ldes425" >&5 | 7482 echo "configure:7483: checking for des_cbc_encrypt in -ldes425" >&5 |
7450 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7483 ac_lib_var=`echo des425'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7451 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7452 echo $ac_n "(cached) $ac_c" 1>&6 | 7485 echo $ac_n "(cached) $ac_c" 1>&6 |
7453 else | 7486 else |
7454 ac_save_LIBS="$LIBS" | 7487 ac_save_LIBS="$LIBS" |
7455 LIBS="-ldes425 $LIBS" | 7488 LIBS="-ldes425 $LIBS" |
7456 cat > conftest.$ac_ext <<EOF | 7489 cat > conftest.$ac_ext <<EOF |
7457 #line 7458 "configure" | 7490 #line 7491 "configure" |
7458 #include "confdefs.h" | 7491 #include "confdefs.h" |
7459 /* Override any gcc2 internal prototype to avoid an error. */ | 7492 /* Override any gcc2 internal prototype to avoid an error. */ |
7460 /* We use char because int might match the return type of a gcc2 | 7493 /* We use char because int might match the return type of a gcc2 |
7461 builtin and then its argument prototype would still apply. */ | 7494 builtin and then its argument prototype would still apply. */ |
7462 char des_cbc_encrypt(); | 7495 char des_cbc_encrypt(); |
7463 | 7496 |
7464 int main() { | 7497 int main() { |
7465 des_cbc_encrypt() | 7498 des_cbc_encrypt() |
7466 ; return 0; } | 7499 ; return 0; } |
7467 EOF | 7500 EOF |
7468 if { (eval echo configure:7469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7501 if { (eval echo configure:7502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7469 rm -rf conftest* | 7502 rm -rf conftest* |
7470 eval "ac_cv_lib_$ac_lib_var=yes" | 7503 eval "ac_cv_lib_$ac_lib_var=yes" |
7471 else | 7504 else |
7472 echo "configure: failed program was:" >&5 | 7505 echo "configure: failed program was:" >&5 |
7473 cat conftest.$ac_ext >&5 | 7506 cat conftest.$ac_ext >&5 |
7489 LIBS="-ldes425 $LIBS" | 7522 LIBS="-ldes425 $LIBS" |
7490 | 7523 |
7491 else | 7524 else |
7492 echo "$ac_t""no" 1>&6 | 7525 echo "$ac_t""no" 1>&6 |
7493 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 | 7526 echo $ac_n "checking for des_cbc_encrypt in -ldes""... $ac_c" 1>&6 |
7494 echo "configure:7495: checking for des_cbc_encrypt in -ldes" >&5 | 7527 echo "configure:7528: checking for des_cbc_encrypt in -ldes" >&5 |
7495 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` | 7528 ac_lib_var=`echo des'_'des_cbc_encrypt | sed 'y%./+-%__p_%'` |
7496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7497 echo $ac_n "(cached) $ac_c" 1>&6 | 7530 echo $ac_n "(cached) $ac_c" 1>&6 |
7498 else | 7531 else |
7499 ac_save_LIBS="$LIBS" | 7532 ac_save_LIBS="$LIBS" |
7500 LIBS="-ldes $LIBS" | 7533 LIBS="-ldes $LIBS" |
7501 cat > conftest.$ac_ext <<EOF | 7534 cat > conftest.$ac_ext <<EOF |
7502 #line 7503 "configure" | 7535 #line 7536 "configure" |
7503 #include "confdefs.h" | 7536 #include "confdefs.h" |
7504 /* Override any gcc2 internal prototype to avoid an error. */ | 7537 /* Override any gcc2 internal prototype to avoid an error. */ |
7505 /* We use char because int might match the return type of a gcc2 | 7538 /* We use char because int might match the return type of a gcc2 |
7506 builtin and then its argument prototype would still apply. */ | 7539 builtin and then its argument prototype would still apply. */ |
7507 char des_cbc_encrypt(); | 7540 char des_cbc_encrypt(); |
7508 | 7541 |
7509 int main() { | 7542 int main() { |
7510 des_cbc_encrypt() | 7543 des_cbc_encrypt() |
7511 ; return 0; } | 7544 ; return 0; } |
7512 EOF | 7545 EOF |
7513 if { (eval echo configure:7514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7546 if { (eval echo configure:7547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7514 rm -rf conftest* | 7547 rm -rf conftest* |
7515 eval "ac_cv_lib_$ac_lib_var=yes" | 7548 eval "ac_cv_lib_$ac_lib_var=yes" |
7516 else | 7549 else |
7517 echo "configure: failed program was:" >&5 | 7550 echo "configure: failed program was:" >&5 |
7518 cat conftest.$ac_ext >&5 | 7551 cat conftest.$ac_ext >&5 |
7538 fi | 7571 fi |
7539 | 7572 |
7540 fi | 7573 fi |
7541 | 7574 |
7542 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 | 7575 echo $ac_n "checking for krb_get_cred in -lkrb4""... $ac_c" 1>&6 |
7543 echo "configure:7544: checking for krb_get_cred in -lkrb4" >&5 | 7576 echo "configure:7577: checking for krb_get_cred in -lkrb4" >&5 |
7544 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` | 7577 ac_lib_var=`echo krb4'_'krb_get_cred | sed 'y%./+-%__p_%'` |
7545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7578 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7546 echo $ac_n "(cached) $ac_c" 1>&6 | 7579 echo $ac_n "(cached) $ac_c" 1>&6 |
7547 else | 7580 else |
7548 ac_save_LIBS="$LIBS" | 7581 ac_save_LIBS="$LIBS" |
7549 LIBS="-lkrb4 $LIBS" | 7582 LIBS="-lkrb4 $LIBS" |
7550 cat > conftest.$ac_ext <<EOF | 7583 cat > conftest.$ac_ext <<EOF |
7551 #line 7552 "configure" | 7584 #line 7585 "configure" |
7552 #include "confdefs.h" | 7585 #include "confdefs.h" |
7553 /* Override any gcc2 internal prototype to avoid an error. */ | 7586 /* Override any gcc2 internal prototype to avoid an error. */ |
7554 /* We use char because int might match the return type of a gcc2 | 7587 /* We use char because int might match the return type of a gcc2 |
7555 builtin and then its argument prototype would still apply. */ | 7588 builtin and then its argument prototype would still apply. */ |
7556 char krb_get_cred(); | 7589 char krb_get_cred(); |
7557 | 7590 |
7558 int main() { | 7591 int main() { |
7559 krb_get_cred() | 7592 krb_get_cred() |
7560 ; return 0; } | 7593 ; return 0; } |
7561 EOF | 7594 EOF |
7562 if { (eval echo configure:7563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7595 if { (eval echo configure:7596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7563 rm -rf conftest* | 7596 rm -rf conftest* |
7564 eval "ac_cv_lib_$ac_lib_var=yes" | 7597 eval "ac_cv_lib_$ac_lib_var=yes" |
7565 else | 7598 else |
7566 echo "configure: failed program was:" >&5 | 7599 echo "configure: failed program was:" >&5 |
7567 cat conftest.$ac_ext >&5 | 7600 cat conftest.$ac_ext >&5 |
7583 LIBS="-lkrb4 $LIBS" | 7616 LIBS="-lkrb4 $LIBS" |
7584 | 7617 |
7585 else | 7618 else |
7586 echo "$ac_t""no" 1>&6 | 7619 echo "$ac_t""no" 1>&6 |
7587 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 | 7620 echo $ac_n "checking for krb_get_cred in -lkrb""... $ac_c" 1>&6 |
7588 echo "configure:7589: checking for krb_get_cred in -lkrb" >&5 | 7621 echo "configure:7622: checking for krb_get_cred in -lkrb" >&5 |
7589 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` | 7622 ac_lib_var=`echo krb'_'krb_get_cred | sed 'y%./+-%__p_%'` |
7590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 7623 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7591 echo $ac_n "(cached) $ac_c" 1>&6 | 7624 echo $ac_n "(cached) $ac_c" 1>&6 |
7592 else | 7625 else |
7593 ac_save_LIBS="$LIBS" | 7626 ac_save_LIBS="$LIBS" |
7594 LIBS="-lkrb $LIBS" | 7627 LIBS="-lkrb $LIBS" |
7595 cat > conftest.$ac_ext <<EOF | 7628 cat > conftest.$ac_ext <<EOF |
7596 #line 7597 "configure" | 7629 #line 7630 "configure" |
7597 #include "confdefs.h" | 7630 #include "confdefs.h" |
7598 /* Override any gcc2 internal prototype to avoid an error. */ | 7631 /* Override any gcc2 internal prototype to avoid an error. */ |
7599 /* We use char because int might match the return type of a gcc2 | 7632 /* We use char because int might match the return type of a gcc2 |
7600 builtin and then its argument prototype would still apply. */ | 7633 builtin and then its argument prototype would still apply. */ |
7601 char krb_get_cred(); | 7634 char krb_get_cred(); |
7602 | 7635 |
7603 int main() { | 7636 int main() { |
7604 krb_get_cred() | 7637 krb_get_cred() |
7605 ; return 0; } | 7638 ; return 0; } |
7606 EOF | 7639 EOF |
7607 if { (eval echo configure:7608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 7640 if { (eval echo configure:7641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7608 rm -rf conftest* | 7641 rm -rf conftest* |
7609 eval "ac_cv_lib_$ac_lib_var=yes" | 7642 eval "ac_cv_lib_$ac_lib_var=yes" |
7610 else | 7643 else |
7611 echo "configure: failed program was:" >&5 | 7644 echo "configure: failed program was:" >&5 |
7612 cat conftest.$ac_ext >&5 | 7645 cat conftest.$ac_ext >&5 |
7638 if test "${with_kerberos5+set}" = set; then | 7671 if test "${with_kerberos5+set}" = set; then |
7639 for ac_hdr in krb5.h | 7672 for ac_hdr in krb5.h |
7640 do | 7673 do |
7641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7674 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7643 echo "configure:7644: checking for $ac_hdr" >&5 | 7676 echo "configure:7677: checking for $ac_hdr" >&5 |
7644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7645 echo $ac_n "(cached) $ac_c" 1>&6 | 7678 echo $ac_n "(cached) $ac_c" 1>&6 |
7646 else | 7679 else |
7647 cat > conftest.$ac_ext <<EOF | 7680 cat > conftest.$ac_ext <<EOF |
7648 #line 7649 "configure" | 7681 #line 7682 "configure" |
7649 #include "confdefs.h" | 7682 #include "confdefs.h" |
7650 #include <$ac_hdr> | 7683 #include <$ac_hdr> |
7651 EOF | 7684 EOF |
7652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7653 { (eval echo configure:7654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7686 { (eval echo configure:7687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7655 if test -z "$ac_err"; then | 7688 if test -z "$ac_err"; then |
7656 rm -rf conftest* | 7689 rm -rf conftest* |
7657 eval "ac_cv_header_$ac_safe=yes" | 7690 eval "ac_cv_header_$ac_safe=yes" |
7658 else | 7691 else |
7679 else | 7712 else |
7680 for ac_hdr in des.h | 7713 for ac_hdr in des.h |
7681 do | 7714 do |
7682 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7715 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7683 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7716 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7684 echo "configure:7685: checking for $ac_hdr" >&5 | 7717 echo "configure:7718: checking for $ac_hdr" >&5 |
7685 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7718 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7686 echo $ac_n "(cached) $ac_c" 1>&6 | 7719 echo $ac_n "(cached) $ac_c" 1>&6 |
7687 else | 7720 else |
7688 cat > conftest.$ac_ext <<EOF | 7721 cat > conftest.$ac_ext <<EOF |
7689 #line 7690 "configure" | 7722 #line 7723 "configure" |
7690 #include "confdefs.h" | 7723 #include "confdefs.h" |
7691 #include <$ac_hdr> | 7724 #include <$ac_hdr> |
7692 EOF | 7725 EOF |
7693 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7726 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7694 { (eval echo configure:7695: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7727 { (eval echo configure:7728: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7695 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7728 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7696 if test -z "$ac_err"; then | 7729 if test -z "$ac_err"; then |
7697 rm -rf conftest* | 7730 rm -rf conftest* |
7698 eval "ac_cv_header_$ac_safe=yes" | 7731 eval "ac_cv_header_$ac_safe=yes" |
7699 else | 7732 else |
7716 echo "$ac_t""no" 1>&6 | 7749 echo "$ac_t""no" 1>&6 |
7717 for ac_hdr in kerberosIV/des.h | 7750 for ac_hdr in kerberosIV/des.h |
7718 do | 7751 do |
7719 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7752 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7720 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7721 echo "configure:7722: checking for $ac_hdr" >&5 | 7754 echo "configure:7755: checking for $ac_hdr" >&5 |
7722 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7723 echo $ac_n "(cached) $ac_c" 1>&6 | 7756 echo $ac_n "(cached) $ac_c" 1>&6 |
7724 else | 7757 else |
7725 cat > conftest.$ac_ext <<EOF | 7758 cat > conftest.$ac_ext <<EOF |
7726 #line 7727 "configure" | 7759 #line 7760 "configure" |
7727 #include "confdefs.h" | 7760 #include "confdefs.h" |
7728 #include <$ac_hdr> | 7761 #include <$ac_hdr> |
7729 EOF | 7762 EOF |
7730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7731 { (eval echo configure:7732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7764 { (eval echo configure:7765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7733 if test -z "$ac_err"; then | 7766 if test -z "$ac_err"; then |
7734 rm -rf conftest* | 7767 rm -rf conftest* |
7735 eval "ac_cv_header_$ac_safe=yes" | 7768 eval "ac_cv_header_$ac_safe=yes" |
7736 else | 7769 else |
7753 echo "$ac_t""no" 1>&6 | 7786 echo "$ac_t""no" 1>&6 |
7754 for ac_hdr in kerberos/des.h | 7787 for ac_hdr in kerberos/des.h |
7755 do | 7788 do |
7756 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7758 echo "configure:7759: checking for $ac_hdr" >&5 | 7791 echo "configure:7792: checking for $ac_hdr" >&5 |
7759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7792 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7760 echo $ac_n "(cached) $ac_c" 1>&6 | 7793 echo $ac_n "(cached) $ac_c" 1>&6 |
7761 else | 7794 else |
7762 cat > conftest.$ac_ext <<EOF | 7795 cat > conftest.$ac_ext <<EOF |
7763 #line 7764 "configure" | 7796 #line 7797 "configure" |
7764 #include "confdefs.h" | 7797 #include "confdefs.h" |
7765 #include <$ac_hdr> | 7798 #include <$ac_hdr> |
7766 EOF | 7799 EOF |
7767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7768 { (eval echo configure:7769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7801 { (eval echo configure:7802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7770 if test -z "$ac_err"; then | 7803 if test -z "$ac_err"; then |
7771 rm -rf conftest* | 7804 rm -rf conftest* |
7772 eval "ac_cv_header_$ac_safe=yes" | 7805 eval "ac_cv_header_$ac_safe=yes" |
7773 else | 7806 else |
7799 | 7832 |
7800 for ac_hdr in krb.h | 7833 for ac_hdr in krb.h |
7801 do | 7834 do |
7802 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7835 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7803 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7804 echo "configure:7805: checking for $ac_hdr" >&5 | 7837 echo "configure:7838: checking for $ac_hdr" >&5 |
7805 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7838 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7806 echo $ac_n "(cached) $ac_c" 1>&6 | 7839 echo $ac_n "(cached) $ac_c" 1>&6 |
7807 else | 7840 else |
7808 cat > conftest.$ac_ext <<EOF | 7841 cat > conftest.$ac_ext <<EOF |
7809 #line 7810 "configure" | 7842 #line 7843 "configure" |
7810 #include "confdefs.h" | 7843 #include "confdefs.h" |
7811 #include <$ac_hdr> | 7844 #include <$ac_hdr> |
7812 EOF | 7845 EOF |
7813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7814 { (eval echo configure:7815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7847 { (eval echo configure:7848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7815 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7816 if test -z "$ac_err"; then | 7849 if test -z "$ac_err"; then |
7817 rm -rf conftest* | 7850 rm -rf conftest* |
7818 eval "ac_cv_header_$ac_safe=yes" | 7851 eval "ac_cv_header_$ac_safe=yes" |
7819 else | 7852 else |
7836 echo "$ac_t""no" 1>&6 | 7869 echo "$ac_t""no" 1>&6 |
7837 for ac_hdr in kerberosIV/krb.h | 7870 for ac_hdr in kerberosIV/krb.h |
7838 do | 7871 do |
7839 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7872 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7840 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7873 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7841 echo "configure:7842: checking for $ac_hdr" >&5 | 7874 echo "configure:7875: checking for $ac_hdr" >&5 |
7842 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7875 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7843 echo $ac_n "(cached) $ac_c" 1>&6 | 7876 echo $ac_n "(cached) $ac_c" 1>&6 |
7844 else | 7877 else |
7845 cat > conftest.$ac_ext <<EOF | 7878 cat > conftest.$ac_ext <<EOF |
7846 #line 7847 "configure" | 7879 #line 7880 "configure" |
7847 #include "confdefs.h" | 7880 #include "confdefs.h" |
7848 #include <$ac_hdr> | 7881 #include <$ac_hdr> |
7849 EOF | 7882 EOF |
7850 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7851 { (eval echo configure:7852: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7884 { (eval echo configure:7885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7852 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7853 if test -z "$ac_err"; then | 7886 if test -z "$ac_err"; then |
7854 rm -rf conftest* | 7887 rm -rf conftest* |
7855 eval "ac_cv_header_$ac_safe=yes" | 7888 eval "ac_cv_header_$ac_safe=yes" |
7856 else | 7889 else |
7873 echo "$ac_t""no" 1>&6 | 7906 echo "$ac_t""no" 1>&6 |
7874 for ac_hdr in kerberos/krb.h | 7907 for ac_hdr in kerberos/krb.h |
7875 do | 7908 do |
7876 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7909 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7877 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7878 echo "configure:7879: checking for $ac_hdr" >&5 | 7911 echo "configure:7912: checking for $ac_hdr" >&5 |
7879 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7912 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7880 echo $ac_n "(cached) $ac_c" 1>&6 | 7913 echo $ac_n "(cached) $ac_c" 1>&6 |
7881 else | 7914 else |
7882 cat > conftest.$ac_ext <<EOF | 7915 cat > conftest.$ac_ext <<EOF |
7883 #line 7884 "configure" | 7916 #line 7917 "configure" |
7884 #include "confdefs.h" | 7917 #include "confdefs.h" |
7885 #include <$ac_hdr> | 7918 #include <$ac_hdr> |
7886 EOF | 7919 EOF |
7887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7888 { (eval echo configure:7889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7921 { (eval echo configure:7922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7890 if test -z "$ac_err"; then | 7923 if test -z "$ac_err"; then |
7891 rm -rf conftest* | 7924 rm -rf conftest* |
7892 eval "ac_cv_header_$ac_safe=yes" | 7925 eval "ac_cv_header_$ac_safe=yes" |
7893 else | 7926 else |
7920 fi | 7953 fi |
7921 for ac_hdr in com_err.h | 7954 for ac_hdr in com_err.h |
7922 do | 7955 do |
7923 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | 7956 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
7924 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | 7957 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
7925 echo "configure:7926: checking for $ac_hdr" >&5 | 7958 echo "configure:7959: checking for $ac_hdr" >&5 |
7926 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 7959 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
7927 echo $ac_n "(cached) $ac_c" 1>&6 | 7960 echo $ac_n "(cached) $ac_c" 1>&6 |
7928 else | 7961 else |
7929 cat > conftest.$ac_ext <<EOF | 7962 cat > conftest.$ac_ext <<EOF |
7930 #line 7931 "configure" | 7963 #line 7964 "configure" |
7931 #include "confdefs.h" | 7964 #include "confdefs.h" |
7932 #include <$ac_hdr> | 7965 #include <$ac_hdr> |
7933 EOF | 7966 EOF |
7934 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 7967 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
7935 { (eval echo configure:7936: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 7968 { (eval echo configure:7969: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
7936 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 7969 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
7937 if test -z "$ac_err"; then | 7970 if test -z "$ac_err"; then |
7938 rm -rf conftest* | 7971 rm -rf conftest* |
7939 eval "ac_cv_header_$ac_safe=yes" | 7972 eval "ac_cv_header_$ac_safe=yes" |
7940 else | 7973 else |
7961 fi | 7994 fi |
7962 | 7995 |
7963 # Solaris requires -lintl if you want strerror (which calls dgettext) | 7996 # Solaris requires -lintl if you want strerror (which calls dgettext) |
7964 # to return localized messages. | 7997 # to return localized messages. |
7965 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 | 7998 echo $ac_n "checking for dgettext in -lintl""... $ac_c" 1>&6 |
7966 echo "configure:7967: checking for dgettext in -lintl" >&5 | 7999 echo "configure:8000: checking for dgettext in -lintl" >&5 |
7967 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` | 8000 ac_lib_var=`echo intl'_'dgettext | sed 'y%./+-%__p_%'` |
7968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | 8001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then |
7969 echo $ac_n "(cached) $ac_c" 1>&6 | 8002 echo $ac_n "(cached) $ac_c" 1>&6 |
7970 else | 8003 else |
7971 ac_save_LIBS="$LIBS" | 8004 ac_save_LIBS="$LIBS" |
7972 LIBS="-lintl $LIBS" | 8005 LIBS="-lintl $LIBS" |
7973 cat > conftest.$ac_ext <<EOF | 8006 cat > conftest.$ac_ext <<EOF |
7974 #line 7975 "configure" | 8007 #line 8008 "configure" |
7975 #include "confdefs.h" | 8008 #include "confdefs.h" |
7976 /* Override any gcc2 internal prototype to avoid an error. */ | 8009 /* Override any gcc2 internal prototype to avoid an error. */ |
7977 /* We use char because int might match the return type of a gcc2 | 8010 /* We use char because int might match the return type of a gcc2 |
7978 builtin and then its argument prototype would still apply. */ | 8011 builtin and then its argument prototype would still apply. */ |
7979 char dgettext(); | 8012 char dgettext(); |
7980 | 8013 |
7981 int main() { | 8014 int main() { |
7982 dgettext() | 8015 dgettext() |
7983 ; return 0; } | 8016 ; return 0; } |
7984 EOF | 8017 EOF |
7985 if { (eval echo configure:7986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8018 if { (eval echo configure:8019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
7986 rm -rf conftest* | 8019 rm -rf conftest* |
7987 eval "ac_cv_lib_$ac_lib_var=yes" | 8020 eval "ac_cv_lib_$ac_lib_var=yes" |
7988 else | 8021 else |
7989 echo "configure: failed program was:" >&5 | 8022 echo "configure: failed program was:" >&5 |
7990 cat conftest.$ac_ext >&5 | 8023 cat conftest.$ac_ext >&5 |
8009 echo "$ac_t""no" 1>&6 | 8042 echo "$ac_t""no" 1>&6 |
8010 fi | 8043 fi |
8011 | 8044 |
8012 | 8045 |
8013 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 | 8046 echo $ac_n "checking whether localtime caches TZ""... $ac_c" 1>&6 |
8014 echo "configure:8015: checking whether localtime caches TZ" >&5 | 8047 echo "configure:8048: checking whether localtime caches TZ" >&5 |
8015 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then | 8048 if eval "test \"`echo '$''{'emacs_cv_localtime_cache'+set}'`\" = set"; then |
8016 echo $ac_n "(cached) $ac_c" 1>&6 | 8049 echo $ac_n "(cached) $ac_c" 1>&6 |
8017 else | 8050 else |
8018 if test x$ac_cv_func_tzset = xyes; then | 8051 if test x$ac_cv_func_tzset = xyes; then |
8019 if test "$cross_compiling" = yes; then | 8052 if test "$cross_compiling" = yes; then |
8020 # If we have tzset, assume the worst when cross-compiling. | 8053 # If we have tzset, assume the worst when cross-compiling. |
8021 emacs_cv_localtime_cache=yes | 8054 emacs_cv_localtime_cache=yes |
8022 else | 8055 else |
8023 cat > conftest.$ac_ext <<EOF | 8056 cat > conftest.$ac_ext <<EOF |
8024 #line 8025 "configure" | 8057 #line 8058 "configure" |
8025 #include "confdefs.h" | 8058 #include "confdefs.h" |
8026 #include <time.h> | 8059 #include <time.h> |
8027 extern char **environ; | 8060 extern char **environ; |
8028 unset_TZ () | 8061 unset_TZ () |
8029 { | 8062 { |
8051 if (localtime (&now)->tm_hour != hour_unset) | 8084 if (localtime (&now)->tm_hour != hour_unset) |
8052 exit (1); | 8085 exit (1); |
8053 exit (0); | 8086 exit (0); |
8054 } | 8087 } |
8055 EOF | 8088 EOF |
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 | 8089 if { (eval echo configure:8090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8057 then | 8090 then |
8058 emacs_cv_localtime_cache=no | 8091 emacs_cv_localtime_cache=no |
8059 else | 8092 else |
8060 echo "configure: failed program was:" >&5 | 8093 echo "configure: failed program was:" >&5 |
8061 cat conftest.$ac_ext >&5 | 8094 cat conftest.$ac_ext >&5 |
8081 | 8114 |
8082 if test "x$HAVE_TIMEVAL" = xyes; then | 8115 if test "x$HAVE_TIMEVAL" = xyes; then |
8083 for ac_func in gettimeofday | 8116 for ac_func in gettimeofday |
8084 do | 8117 do |
8085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | 8118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
8086 echo "configure:8087: checking for $ac_func" >&5 | 8119 echo "configure:8120: checking for $ac_func" >&5 |
8087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then | 8120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
8088 echo $ac_n "(cached) $ac_c" 1>&6 | 8121 echo $ac_n "(cached) $ac_c" 1>&6 |
8089 else | 8122 else |
8090 cat > conftest.$ac_ext <<EOF | 8123 cat > conftest.$ac_ext <<EOF |
8091 #line 8092 "configure" | 8124 #line 8125 "configure" |
8092 #include "confdefs.h" | 8125 #include "confdefs.h" |
8093 /* System header to define __stub macros and hopefully few prototypes, | 8126 /* System header to define __stub macros and hopefully few prototypes, |
8094 which can conflict with char $ac_func(); below. */ | 8127 which can conflict with char $ac_func(); below. */ |
8095 #include <assert.h> | 8128 #include <assert.h> |
8096 /* Override any gcc2 internal prototype to avoid an error. */ | 8129 /* Override any gcc2 internal prototype to avoid an error. */ |
8109 $ac_func(); | 8142 $ac_func(); |
8110 #endif | 8143 #endif |
8111 | 8144 |
8112 ; return 0; } | 8145 ; return 0; } |
8113 EOF | 8146 EOF |
8114 if { (eval echo configure:8115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8147 if { (eval echo configure:8148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8115 rm -rf conftest* | 8148 rm -rf conftest* |
8116 eval "ac_cv_func_$ac_func=yes" | 8149 eval "ac_cv_func_$ac_func=yes" |
8117 else | 8150 else |
8118 echo "configure: failed program was:" >&5 | 8151 echo "configure: failed program was:" >&5 |
8119 cat conftest.$ac_ext >&5 | 8152 cat conftest.$ac_ext >&5 |
8134 echo "$ac_t""no" 1>&6 | 8167 echo "$ac_t""no" 1>&6 |
8135 fi | 8168 fi |
8136 done | 8169 done |
8137 | 8170 |
8138 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 | 8171 echo $ac_n "checking whether gettimeofday can accept two arguments""... $ac_c" 1>&6 |
8139 echo "configure:8140: checking whether gettimeofday can accept two arguments" >&5 | 8172 echo "configure:8173: checking whether gettimeofday can accept two arguments" >&5 |
8140 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then | 8173 if eval "test \"`echo '$''{'emacs_cv_gettimeofday_two_arguments'+set}'`\" = set"; then |
8141 echo $ac_n "(cached) $ac_c" 1>&6 | 8174 echo $ac_n "(cached) $ac_c" 1>&6 |
8142 else | 8175 else |
8143 cat > conftest.$ac_ext <<EOF | 8176 cat > conftest.$ac_ext <<EOF |
8144 #line 8145 "configure" | 8177 #line 8178 "configure" |
8145 #include "confdefs.h" | 8178 #include "confdefs.h" |
8146 | 8179 |
8147 #ifdef TIME_WITH_SYS_TIME | 8180 #ifdef TIME_WITH_SYS_TIME |
8148 #include <sys/time.h> | 8181 #include <sys/time.h> |
8149 #include <time.h> | 8182 #include <time.h> |
8157 int main() { | 8190 int main() { |
8158 struct timeval time; | 8191 struct timeval time; |
8159 gettimeofday (&time, 0); | 8192 gettimeofday (&time, 0); |
8160 ; return 0; } | 8193 ; return 0; } |
8161 EOF | 8194 EOF |
8162 if { (eval echo configure:8163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 8195 if { (eval echo configure:8196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8163 rm -rf conftest* | 8196 rm -rf conftest* |
8164 emacs_cv_gettimeofday_two_arguments=yes | 8197 emacs_cv_gettimeofday_two_arguments=yes |
8165 else | 8198 else |
8166 echo "configure: failed program was:" >&5 | 8199 echo "configure: failed program was:" >&5 |
8167 cat conftest.$ac_ext >&5 | 8200 cat conftest.$ac_ext >&5 |
8180 fi | 8213 fi |
8181 fi | 8214 fi |
8182 | 8215 |
8183 if test "$ac_cv_func_gettimeofday" = yes; then | 8216 if test "$ac_cv_func_gettimeofday" = yes; then |
8184 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 | 8217 echo $ac_n "checking for struct timezone""... $ac_c" 1>&6 |
8185 echo "configure:8186: checking for struct timezone" >&5 | 8218 echo "configure:8219: checking for struct timezone" >&5 |
8186 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then | 8219 if eval "test \"`echo '$''{'emacs_cv_struct_timezone'+set}'`\" = set"; then |
8187 echo $ac_n "(cached) $ac_c" 1>&6 | 8220 echo $ac_n "(cached) $ac_c" 1>&6 |
8188 else | 8221 else |
8189 cat > conftest.$ac_ext <<EOF | 8222 cat > conftest.$ac_ext <<EOF |
8190 #line 8191 "configure" | 8223 #line 8224 "configure" |
8191 #include "confdefs.h" | 8224 #include "confdefs.h" |
8192 #include <sys/time.h> | 8225 #include <sys/time.h> |
8193 int main() { | 8226 int main() { |
8194 struct timezone tz; | 8227 struct timezone tz; |
8195 ; return 0; } | 8228 ; return 0; } |
8196 EOF | 8229 EOF |
8197 if { (eval echo configure:8198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | 8230 if { (eval echo configure:8231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
8198 rm -rf conftest* | 8231 rm -rf conftest* |
8199 if test "$cross_compiling" = yes; then | 8232 if test "$cross_compiling" = yes; then |
8200 emacs_cv_struct_timezone=yes | 8233 emacs_cv_struct_timezone=yes |
8201 else | 8234 else |
8202 cat > conftest.$ac_ext <<EOF | 8235 cat > conftest.$ac_ext <<EOF |
8203 #line 8204 "configure" | 8236 #line 8237 "configure" |
8204 #include "confdefs.h" | 8237 #include "confdefs.h" |
8205 | 8238 |
8206 #ifdef TIME_WITH_SYS_TIME | 8239 #ifdef TIME_WITH_SYS_TIME |
8207 #include <sys/time.h> | 8240 #include <sys/time.h> |
8208 #include <time.h> | 8241 #include <time.h> |
8217 struct timeval time; | 8250 struct timeval time; |
8218 struct timezone dummy; | 8251 struct timezone dummy; |
8219 exit (gettimeofday (&time, &dummy)); | 8252 exit (gettimeofday (&time, &dummy)); |
8220 } | 8253 } |
8221 EOF | 8254 EOF |
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 | 8255 if { (eval echo configure:8256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8223 then | 8256 then |
8224 emacs_cv_struct_timezone=yes | 8257 emacs_cv_struct_timezone=yes |
8225 else | 8258 else |
8226 echo "configure: failed program was:" >&5 | 8259 echo "configure: failed program was:" >&5 |
8227 cat conftest.$ac_ext >&5 | 8260 cat conftest.$ac_ext >&5 |
8243 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 | 8276 echo "$ac_t""$emacs_cv_struct_timezone" 1>&6 |
8244 fi | 8277 fi |
8245 | 8278 |
8246 ok_so_far=yes | 8279 ok_so_far=yes |
8247 echo $ac_n "checking for socket""... $ac_c" 1>&6 | 8280 echo $ac_n "checking for socket""... $ac_c" 1>&6 |
8248 echo "configure:8249: checking for socket" >&5 | 8281 echo "configure:8282: checking for socket" >&5 |
8249 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then | 8282 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then |
8250 echo $ac_n "(cached) $ac_c" 1>&6 | 8283 echo $ac_n "(cached) $ac_c" 1>&6 |
8251 else | 8284 else |
8252 cat > conftest.$ac_ext <<EOF | 8285 cat > conftest.$ac_ext <<EOF |
8253 #line 8254 "configure" | 8286 #line 8287 "configure" |
8254 #include "confdefs.h" | 8287 #include "confdefs.h" |
8255 /* System header to define __stub macros and hopefully few prototypes, | 8288 /* System header to define __stub macros and hopefully few prototypes, |
8256 which can conflict with char socket(); below. */ | 8289 which can conflict with char socket(); below. */ |
8257 #include <assert.h> | 8290 #include <assert.h> |
8258 /* Override any gcc2 internal prototype to avoid an error. */ | 8291 /* Override any gcc2 internal prototype to avoid an error. */ |
8271 socket(); | 8304 socket(); |
8272 #endif | 8305 #endif |
8273 | 8306 |
8274 ; return 0; } | 8307 ; return 0; } |
8275 EOF | 8308 EOF |
8276 if { (eval echo configure:8277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8309 if { (eval echo configure:8310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8277 rm -rf conftest* | 8310 rm -rf conftest* |
8278 eval "ac_cv_func_socket=yes" | 8311 eval "ac_cv_func_socket=yes" |
8279 else | 8312 else |
8280 echo "configure: failed program was:" >&5 | 8313 echo "configure: failed program was:" >&5 |
8281 cat conftest.$ac_ext >&5 | 8314 cat conftest.$ac_ext >&5 |
8294 fi | 8327 fi |
8295 | 8328 |
8296 if test $ok_so_far = yes; then | 8329 if test $ok_so_far = yes; then |
8297 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` | 8330 ac_safe=`echo "netinet/in.h" | sed 'y%./+-%__p_%'` |
8298 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 | 8331 echo $ac_n "checking for netinet/in.h""... $ac_c" 1>&6 |
8299 echo "configure:8300: checking for netinet/in.h" >&5 | 8332 echo "configure:8333: checking for netinet/in.h" >&5 |
8300 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 8333 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8301 echo $ac_n "(cached) $ac_c" 1>&6 | 8334 echo $ac_n "(cached) $ac_c" 1>&6 |
8302 else | 8335 else |
8303 cat > conftest.$ac_ext <<EOF | 8336 cat > conftest.$ac_ext <<EOF |
8304 #line 8305 "configure" | 8337 #line 8338 "configure" |
8305 #include "confdefs.h" | 8338 #include "confdefs.h" |
8306 #include <netinet/in.h> | 8339 #include <netinet/in.h> |
8307 EOF | 8340 EOF |
8308 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8341 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8309 { (eval echo configure:8310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8342 { (eval echo configure:8343: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8310 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 8343 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8311 if test -z "$ac_err"; then | 8344 if test -z "$ac_err"; then |
8312 rm -rf conftest* | 8345 rm -rf conftest* |
8313 eval "ac_cv_header_$ac_safe=yes" | 8346 eval "ac_cv_header_$ac_safe=yes" |
8314 else | 8347 else |
8330 | 8363 |
8331 fi | 8364 fi |
8332 if test $ok_so_far = yes; then | 8365 if test $ok_so_far = yes; then |
8333 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` | 8366 ac_safe=`echo "arpa/inet.h" | sed 'y%./+-%__p_%'` |
8334 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 | 8367 echo $ac_n "checking for arpa/inet.h""... $ac_c" 1>&6 |
8335 echo "configure:8336: checking for arpa/inet.h" >&5 | 8368 echo "configure:8369: checking for arpa/inet.h" >&5 |
8336 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 8369 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8337 echo $ac_n "(cached) $ac_c" 1>&6 | 8370 echo $ac_n "(cached) $ac_c" 1>&6 |
8338 else | 8371 else |
8339 cat > conftest.$ac_ext <<EOF | 8372 cat > conftest.$ac_ext <<EOF |
8340 #line 8341 "configure" | 8373 #line 8374 "configure" |
8341 #include "confdefs.h" | 8374 #include "confdefs.h" |
8342 #include <arpa/inet.h> | 8375 #include <arpa/inet.h> |
8343 EOF | 8376 EOF |
8344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8345 { (eval echo configure:8346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8378 { (eval echo configure:8379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 8379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8347 if test -z "$ac_err"; then | 8380 if test -z "$ac_err"; then |
8348 rm -rf conftest* | 8381 rm -rf conftest* |
8349 eval "ac_cv_header_$ac_safe=yes" | 8382 eval "ac_cv_header_$ac_safe=yes" |
8350 else | 8383 else |
8378 EOF | 8411 EOF |
8379 | 8412 |
8380 fi | 8413 fi |
8381 | 8414 |
8382 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 | 8415 echo $ac_n "checking whether system supports dynamic ptys""... $ac_c" 1>&6 |
8383 echo "configure:8384: checking whether system supports dynamic ptys" >&5 | 8416 echo "configure:8417: checking whether system supports dynamic ptys" >&5 |
8384 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then | 8417 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
8385 echo "$ac_t""yes" 1>&6 | 8418 echo "$ac_t""yes" 1>&6 |
8386 cat >> confdefs.h <<\EOF | 8419 cat >> confdefs.h <<\EOF |
8387 #define HAVE_DEV_PTMX 1 | 8420 #define HAVE_DEV_PTMX 1 |
8388 EOF | 8421 EOF |
8390 else | 8423 else |
8391 echo "$ac_t""no" 1>&6 | 8424 echo "$ac_t""no" 1>&6 |
8392 fi | 8425 fi |
8393 | 8426 |
8394 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 | 8427 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
8395 echo "configure:8396: checking for pid_t" >&5 | 8428 echo "configure:8429: checking for pid_t" >&5 |
8396 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then | 8429 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
8397 echo $ac_n "(cached) $ac_c" 1>&6 | 8430 echo $ac_n "(cached) $ac_c" 1>&6 |
8398 else | 8431 else |
8399 cat > conftest.$ac_ext <<EOF | 8432 cat > conftest.$ac_ext <<EOF |
8400 #line 8401 "configure" | 8433 #line 8434 "configure" |
8401 #include "confdefs.h" | 8434 #include "confdefs.h" |
8402 #include <sys/types.h> | 8435 #include <sys/types.h> |
8403 #if STDC_HEADERS | 8436 #if STDC_HEADERS |
8404 #include <stdlib.h> | 8437 #include <stdlib.h> |
8405 #include <stddef.h> | 8438 #include <stddef.h> |
8424 | 8457 |
8425 fi | 8458 fi |
8426 | 8459 |
8427 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` | 8460 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` |
8428 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 | 8461 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 |
8429 echo "configure:8430: checking for vfork.h" >&5 | 8462 echo "configure:8463: checking for vfork.h" >&5 |
8430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then | 8463 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
8431 echo $ac_n "(cached) $ac_c" 1>&6 | 8464 echo $ac_n "(cached) $ac_c" 1>&6 |
8432 else | 8465 else |
8433 cat > conftest.$ac_ext <<EOF | 8466 cat > conftest.$ac_ext <<EOF |
8434 #line 8435 "configure" | 8467 #line 8468 "configure" |
8435 #include "confdefs.h" | 8468 #include "confdefs.h" |
8436 #include <vfork.h> | 8469 #include <vfork.h> |
8437 EOF | 8470 EOF |
8438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | 8471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
8439 { (eval echo configure:8440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | 8472 { (eval echo configure:8473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
8440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` | 8473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
8441 if test -z "$ac_err"; then | 8474 if test -z "$ac_err"; then |
8442 rm -rf conftest* | 8475 rm -rf conftest* |
8443 eval "ac_cv_header_$ac_safe=yes" | 8476 eval "ac_cv_header_$ac_safe=yes" |
8444 else | 8477 else |
8459 else | 8492 else |
8460 echo "$ac_t""no" 1>&6 | 8493 echo "$ac_t""no" 1>&6 |
8461 fi | 8494 fi |
8462 | 8495 |
8463 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 | 8496 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 |
8464 echo "configure:8465: checking for working vfork" >&5 | 8497 echo "configure:8498: checking for working vfork" >&5 |
8465 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then | 8498 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
8466 echo $ac_n "(cached) $ac_c" 1>&6 | 8499 echo $ac_n "(cached) $ac_c" 1>&6 |
8467 else | 8500 else |
8468 if test "$cross_compiling" = yes; then | 8501 if test "$cross_compiling" = yes; then |
8469 echo $ac_n "checking for vfork""... $ac_c" 1>&6 | 8502 echo $ac_n "checking for vfork""... $ac_c" 1>&6 |
8470 echo "configure:8471: checking for vfork" >&5 | 8503 echo "configure:8504: checking for vfork" >&5 |
8471 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then | 8504 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
8472 echo $ac_n "(cached) $ac_c" 1>&6 | 8505 echo $ac_n "(cached) $ac_c" 1>&6 |
8473 else | 8506 else |
8474 cat > conftest.$ac_ext <<EOF | 8507 cat > conftest.$ac_ext <<EOF |
8475 #line 8476 "configure" | 8508 #line 8509 "configure" |
8476 #include "confdefs.h" | 8509 #include "confdefs.h" |
8477 /* System header to define __stub macros and hopefully few prototypes, | 8510 /* System header to define __stub macros and hopefully few prototypes, |
8478 which can conflict with char vfork(); below. */ | 8511 which can conflict with char vfork(); below. */ |
8479 #include <assert.h> | 8512 #include <assert.h> |
8480 /* Override any gcc2 internal prototype to avoid an error. */ | 8513 /* Override any gcc2 internal prototype to avoid an error. */ |
8493 vfork(); | 8526 vfork(); |
8494 #endif | 8527 #endif |
8495 | 8528 |
8496 ; return 0; } | 8529 ; return 0; } |
8497 EOF | 8530 EOF |
8498 if { (eval echo configure:8499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then | 8531 if { (eval echo configure:8532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
8499 rm -rf conftest* | 8532 rm -rf conftest* |
8500 eval "ac_cv_func_vfork=yes" | 8533 eval "ac_cv_func_vfork=yes" |
8501 else | 8534 else |
8502 echo "configure: failed program was:" >&5 | 8535 echo "configure: failed program was:" >&5 |
8503 cat conftest.$ac_ext >&5 | 8536 cat conftest.$ac_ext >&5 |
8515 fi | 8548 fi |
8516 | 8549 |
8517 ac_cv_func_vfork_works=$ac_cv_func_vfork | 8550 ac_cv_func_vfork_works=$ac_cv_func_vfork |
8518 else | 8551 else |
8519 cat > conftest.$ac_ext <<EOF | 8552 cat > conftest.$ac_ext <<EOF |
8520 #line 8521 "configure" | 8553 #line 8554 "configure" |
8521 #include "confdefs.h" | 8554 #include "confdefs.h" |
8522 /* Thanks to Paul Eggert for this test. */ | 8555 /* Thanks to Paul Eggert for this test. */ |
8523 #include <stdio.h> | 8556 #include <stdio.h> |
8524 #include <sys/types.h> | 8557 #include <sys/types.h> |
8525 #include <sys/stat.h> | 8558 #include <sys/stat.h> |
8610 || fstat(fileno(stdout), &st) != 0 | 8643 || fstat(fileno(stdout), &st) != 0 |
8611 ); | 8644 ); |
8612 } | 8645 } |
8613 } | 8646 } |
8614 EOF | 8647 EOF |
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 | 8648 if { (eval echo configure:8649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
8616 then | 8649 then |
8617 ac_cv_func_vfork_works=yes | 8650 ac_cv_func_vfork_works=yes |
8618 else | 8651 else |
8619 echo "configure: failed program was:" >&5 | 8652 echo "configure: failed program was:" >&5 |
8620 cat conftest.$ac_ext >&5 | 8653 cat conftest.$ac_ext >&5 |
8635 fi | 8668 fi |
8636 | 8669 |
8637 | 8670 |
8638 # Fixme: This should be replaced when we have autoconf 2.14. | 8671 # Fixme: This should be replaced when we have autoconf 2.14. |
8639 echo $ac_n "checking for size_t""... $ac_c" 1>&6 | 8672 echo $ac_n "checking for size_t""... $ac_c" 1>&6 |
8640 echo "configure:8641: checking for size_t" >&5 | 8673 echo "configure:8674: checking for size_t" >&5 |
8641 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then | 8674 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
8642 echo $ac_n "(cached) $ac_c" 1>&6 | 8675 echo $ac_n "(cached) $ac_c" 1>&6 |
8643 else | 8676 else |
8644 cat > conftest.$ac_ext <<EOF | 8677 cat > conftest.$ac_ext <<EOF |
8645 #line 8646 "configure" | 8678 #line 8679 "configure" |
8646 #include "confdefs.h" | 8679 #include "confdefs.h" |
8647 #include <sys/types.h> | 8680 #include <sys/types.h> |
8648 #if STDC_HEADERS | 8681 #if STDC_HEADERS |
8649 #include <stdlib.h> | 8682 #include <stdlib.h> |
8650 #include <stddef.h> | 8683 #include <stddef.h> |