| 3820 | | |
|---|
| 3821 | | |
|---|
| 3822 | | if test "$wi_include_math_library_done" != "yes"; then |
|---|
| 3823 | | { echo "$as_me:$LINENO: checking for pow" >&5 |
|---|
| 3824 | | echo $ECHO_N "checking for pow... $ECHO_C" >&6; } |
|---|
| 3825 | | if test "${ac_cv_func_pow+set}" = set; then |
|---|
| 3826 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 3827 | | else |
|---|
| 3828 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 3829 | | /* confdefs.h. */ |
|---|
| 3830 | | _ACEOF |
|---|
| 3831 | | cat confdefs.h >>conftest.$ac_ext |
|---|
| 3832 | | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 3833 | | /* end confdefs.h. */ |
|---|
| 3834 | | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
|---|
| 3835 | | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|---|
| 3836 | | #define pow innocuous_pow |
|---|
| 3837 | | |
|---|
| 3838 | | /* System header to define __stub macros and hopefully few prototypes, |
|---|
| 3839 | | which can conflict with char pow (); below. |
|---|
| 3840 | | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| 3841 | | <limits.h> exists even on freestanding compilers. */ |
|---|
| 3842 | | |
|---|
| 3843 | | #ifdef __STDC__ |
|---|
| 3844 | | # include <limits.h> |
|---|
| 3845 | | #else |
|---|
| 3846 | | # include <assert.h> |
|---|
| 3847 | | #endif |
|---|
| 3848 | | |
|---|
| 3849 | | #undef pow |
|---|
| 3850 | | |
|---|
| 3851 | | /* Override any GCC internal prototype to avoid an error. |
|---|
| 3852 | | Use char because int might match the return type of a GCC |
|---|
| 3853 | | builtin and then its argument prototype would still apply. */ |
|---|
| 3854 | | #ifdef __cplusplus |
|---|
| 3855 | | extern "C" |
|---|
| 3856 | | #endif |
|---|
| 3857 | | char pow (); |
|---|
| 3858 | | /* The GNU C library defines this for functions which it implements |
|---|
| 3859 | | to always fail with ENOSYS. Some functions are actually named |
|---|
| 3860 | | something starting with __ and the normal name is an alias. */ |
|---|
| 3861 | | #if defined __stub_pow || defined __stub___pow |
|---|
| 3862 | | choke me |
|---|
| 3863 | | #endif |
|---|
| 3864 | | |
|---|
| 3865 | | int |
|---|
| 3866 | | main () |
|---|
| 3867 | | { |
|---|
| 3868 | | return pow (); |
|---|
| 3869 | | ; |
|---|
| 3870 | | return 0; |
|---|
| 3871 | | } |
|---|
| 3872 | | _ACEOF |
|---|
| 3873 | | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 3874 | | if { (ac_try="$ac_link" |
|---|
| 3875 | | case "(($ac_try" in |
|---|
| 3876 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 3877 | | *) ac_try_echo=$ac_try;; |
|---|
| 3878 | | esac |
|---|
| 3879 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| 3880 | | (eval "$ac_link") 2>conftest.er1 |
|---|
| 3881 | | ac_status=$? |
|---|
| 3882 | | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 3883 | | rm -f conftest.er1 |
|---|
| 3884 | | cat conftest.err >&5 |
|---|
| 3885 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3886 | | (exit $ac_status); } && { |
|---|
| 3887 | | test -z "$ac_c_werror_flag" || |
|---|
| 3888 | | test ! -s conftest.err |
|---|
| 3889 | | } && test -s conftest$ac_exeext && |
|---|
| 3890 | | $as_test_x conftest$ac_exeext; then |
|---|
| 3891 | | ac_cv_func_pow=yes |
|---|
| 3892 | | else |
|---|
| 3893 | | echo "$as_me: failed program was:" >&5 |
|---|
| 3894 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 3895 | | |
|---|
| 3896 | | ac_cv_func_pow=no |
|---|
| 3897 | | fi |
|---|
| 3898 | | |
|---|
| 3899 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|---|
| 3900 | | conftest$ac_exeext conftest.$ac_ext |
|---|
| 3901 | | fi |
|---|
| 3902 | | { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
|---|
| 3903 | | echo "${ECHO_T}$ac_cv_func_pow" >&6; } |
|---|
| 3904 | | if test $ac_cv_func_pow = yes; then |
|---|
| 3905 | | : |
|---|
| 3906 | | else |
|---|
| 3907 | | |
|---|
| 3908 | | { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
|---|
| 3909 | | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; } |
|---|
| 3910 | | if test "${ac_cv_lib_m_sqrt+set}" = set; then |
|---|
| 3911 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 3912 | | else |
|---|
| 3913 | | ac_check_lib_save_LIBS=$LIBS |
|---|
| 3914 | | LIBS="-lm $LIBS" |
|---|
| 3915 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 3916 | | /* confdefs.h. */ |
|---|
| 3917 | | _ACEOF |
|---|
| 3918 | | cat confdefs.h >>conftest.$ac_ext |
|---|
| 3919 | | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 3920 | | /* end confdefs.h. */ |
|---|
| 3921 | | |
|---|
| 3922 | | /* Override any GCC internal prototype to avoid an error. |
|---|
| 3923 | | Use char because int might match the return type of a GCC |
|---|
| 3924 | | builtin and then its argument prototype would still apply. */ |
|---|
| 3925 | | #ifdef __cplusplus |
|---|
| 3926 | | extern "C" |
|---|
| 3927 | | #endif |
|---|
| 3928 | | char sqrt (); |
|---|
| 3929 | | int |
|---|
| 3930 | | main () |
|---|
| 3931 | | { |
|---|
| 3932 | | return sqrt (); |
|---|
| 3933 | | ; |
|---|
| 3934 | | return 0; |
|---|
| 3935 | | } |
|---|
| 3936 | | _ACEOF |
|---|
| 3937 | | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 3938 | | if { (ac_try="$ac_link" |
|---|
| 3939 | | case "(($ac_try" in |
|---|
| 3940 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 3941 | | *) ac_try_echo=$ac_try;; |
|---|
| 3942 | | esac |
|---|
| 3943 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| 3944 | | (eval "$ac_link") 2>conftest.er1 |
|---|
| 3945 | | ac_status=$? |
|---|
| 3946 | | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 3947 | | rm -f conftest.er1 |
|---|
| 3948 | | cat conftest.err >&5 |
|---|
| 3949 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 3950 | | (exit $ac_status); } && { |
|---|
| 3951 | | test -z "$ac_c_werror_flag" || |
|---|
| 3952 | | test ! -s conftest.err |
|---|
| 3953 | | } && test -s conftest$ac_exeext && |
|---|
| 3954 | | $as_test_x conftest$ac_exeext; then |
|---|
| 3955 | | ac_cv_lib_m_sqrt=yes |
|---|
| 3956 | | else |
|---|
| 3957 | | echo "$as_me: failed program was:" >&5 |
|---|
| 3958 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 3959 | | |
|---|
| 3960 | | ac_cv_lib_m_sqrt=no |
|---|
| 3961 | | fi |
|---|
| 3962 | | |
|---|
| 3963 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|---|
| 3964 | | conftest$ac_exeext conftest.$ac_ext |
|---|
| 3965 | | LIBS=$ac_check_lib_save_LIBS |
|---|
| 3966 | | fi |
|---|
| 3967 | | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
|---|
| 3968 | | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; } |
|---|
| 3969 | | if test $ac_cv_lib_m_sqrt = yes; then |
|---|
| 3970 | | |
|---|
| 3971 | | |
|---|
| 3972 | | if test -z "$LIBS"; then |
|---|
| 3973 | | LIBS="-lm" |
|---|
| 3974 | | else |
|---|
| 3975 | | MATCH=`expr -- "$LIBS" : ".*-lm"` |
|---|
| 3976 | | |
|---|
| 3977 | | if test "$MATCH" = "0"; then |
|---|
| 3978 | | LIBS="$LIBS -lm" |
|---|
| 3979 | | fi |
|---|
| 3980 | | fi |
|---|
| 3981 | | |
|---|
| 3982 | | |
|---|
| 3983 | | fi |
|---|
| 3984 | | |
|---|
| 3985 | | |
|---|
| 3986 | | fi |
|---|
| 3987 | | |
|---|
| 3988 | | |
|---|
| 3989 | | wi_include_math_library_done="yes" |
|---|
| 3990 | | fi |
|---|
| 3991 | | |
|---|
| 3992 | | |
|---|
| 3993 | | if test "$wi_include_socket_library_done" != "yes"; then |
|---|
| 3994 | | { echo "$as_me:$LINENO: checking for setsockopt" >&5 |
|---|
| 3995 | | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } |
|---|
| 3996 | | if test "${ac_cv_func_setsockopt+set}" = set; then |
|---|
| 3997 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 3998 | | else |
|---|
| 3999 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 4000 | | /* confdefs.h. */ |
|---|
| 4001 | | _ACEOF |
|---|
| 4002 | | cat confdefs.h >>conftest.$ac_ext |
|---|
| 4003 | | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 4004 | | /* end confdefs.h. */ |
|---|
| 4005 | | /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. |
|---|
| 4006 | | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|---|
| 4007 | | #define setsockopt innocuous_setsockopt |
|---|
| 4008 | | |
|---|
| 4009 | | /* System header to define __stub macros and hopefully few prototypes, |
|---|
| 4010 | | which can conflict with char setsockopt (); below. |
|---|
| 4011 | | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| 4012 | | <limits.h> exists even on freestanding compilers. */ |
|---|
| 4013 | | |
|---|
| 4014 | | #ifdef __STDC__ |
|---|
| 4015 | | # include <limits.h> |
|---|
| 4016 | | #else |
|---|
| 4017 | | # include <assert.h> |
|---|
| 4018 | | #endif |
|---|
| 4019 | | |
|---|
| 4020 | | #undef setsockopt |
|---|
| 4021 | | |
|---|
| 4022 | | /* Override any GCC internal prototype to avoid an error. |
|---|
| 4023 | | Use char because int might match the return type of a GCC |
|---|
| 4024 | | builtin and then its argument prototype would still apply. */ |
|---|
| 4025 | | #ifdef __cplusplus |
|---|
| 4026 | | extern "C" |
|---|
| 4027 | | #endif |
|---|
| 4028 | | char setsockopt (); |
|---|
| 4029 | | /* The GNU C library defines this for functions which it implements |
|---|
| 4030 | | to always fail with ENOSYS. Some functions are actually named |
|---|
| 4031 | | something starting with __ and the normal name is an alias. */ |
|---|
| 4032 | | #if defined __stub_setsockopt || defined __stub___setsockopt |
|---|
| 4033 | | choke me |
|---|
| 4034 | | #endif |
|---|
| 4035 | | |
|---|
| 4036 | | int |
|---|
| 4037 | | main () |
|---|
| 4038 | | { |
|---|
| 4039 | | return setsockopt (); |
|---|
| 4040 | | ; |
|---|
| 4041 | | return 0; |
|---|
| 4042 | | } |
|---|
| 4043 | | _ACEOF |
|---|
| 4044 | | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 4045 | | if { (ac_try="$ac_link" |
|---|
| 4046 | | case "(($ac_try" in |
|---|
| 4047 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 4048 | | *) ac_try_echo=$ac_try;; |
|---|
| 4049 | | esac |
|---|
| 4050 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| 4051 | | (eval "$ac_link") 2>conftest.er1 |
|---|
| 4052 | | ac_status=$? |
|---|
| 4053 | | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 4054 | | rm -f conftest.er1 |
|---|
| 4055 | | cat conftest.err >&5 |
|---|
| 4056 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4057 | | (exit $ac_status); } && { |
|---|
| 4058 | | test -z "$ac_c_werror_flag" || |
|---|
| 4059 | | test ! -s conftest.err |
|---|
| 4060 | | } && test -s conftest$ac_exeext && |
|---|
| 4061 | | $as_test_x conftest$ac_exeext; then |
|---|
| 4062 | | ac_cv_func_setsockopt=yes |
|---|
| 4063 | | else |
|---|
| 4064 | | echo "$as_me: failed program was:" >&5 |
|---|
| 4065 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4066 | | |
|---|
| 4067 | | ac_cv_func_setsockopt=no |
|---|
| 4068 | | fi |
|---|
| 4069 | | |
|---|
| 4070 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|---|
| 4071 | | conftest$ac_exeext conftest.$ac_ext |
|---|
| 4072 | | fi |
|---|
| 4073 | | { echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 |
|---|
| 4074 | | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } |
|---|
| 4075 | | if test $ac_cv_func_setsockopt = yes; then |
|---|
| 4076 | | : |
|---|
| 4077 | | else |
|---|
| 4078 | | |
|---|
| 4079 | | { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 |
|---|
| 4080 | | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } |
|---|
| 4081 | | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then |
|---|
| 4082 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 4083 | | else |
|---|
| 4084 | | ac_check_lib_save_LIBS=$LIBS |
|---|
| 4085 | | LIBS="-lsocket $LIBS" |
|---|
| 4086 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 4087 | | /* confdefs.h. */ |
|---|
| 4088 | | _ACEOF |
|---|
| 4089 | | cat confdefs.h >>conftest.$ac_ext |
|---|
| 4090 | | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 4091 | | /* end confdefs.h. */ |
|---|
| 4092 | | |
|---|
| 4093 | | /* Override any GCC internal prototype to avoid an error. |
|---|
| 4094 | | Use char because int might match the return type of a GCC |
|---|
| 4095 | | builtin and then its argument prototype would still apply. */ |
|---|
| 4096 | | #ifdef __cplusplus |
|---|
| 4097 | | extern "C" |
|---|
| 4098 | | #endif |
|---|
| 4099 | | char setsockopt (); |
|---|
| 4100 | | int |
|---|
| 4101 | | main () |
|---|
| 4102 | | { |
|---|
| 4103 | | return setsockopt (); |
|---|
| 4104 | | ; |
|---|
| 4105 | | return 0; |
|---|
| 4106 | | } |
|---|
| 4107 | | _ACEOF |
|---|
| 4108 | | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 4109 | | if { (ac_try="$ac_link" |
|---|
| 4110 | | case "(($ac_try" in |
|---|
| 4111 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 4112 | | *) ac_try_echo=$ac_try;; |
|---|
| 4113 | | esac |
|---|
| 4114 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| 4115 | | (eval "$ac_link") 2>conftest.er1 |
|---|
| 4116 | | ac_status=$? |
|---|
| 4117 | | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 4118 | | rm -f conftest.er1 |
|---|
| 4119 | | cat conftest.err >&5 |
|---|
| 4120 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4121 | | (exit $ac_status); } && { |
|---|
| 4122 | | test -z "$ac_c_werror_flag" || |
|---|
| 4123 | | test ! -s conftest.err |
|---|
| 4124 | | } && test -s conftest$ac_exeext && |
|---|
| 4125 | | $as_test_x conftest$ac_exeext; then |
|---|
| 4126 | | ac_cv_lib_socket_setsockopt=yes |
|---|
| 4127 | | else |
|---|
| 4128 | | echo "$as_me: failed program was:" >&5 |
|---|
| 4129 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4130 | | |
|---|
| 4131 | | ac_cv_lib_socket_setsockopt=no |
|---|
| 4132 | | fi |
|---|
| 4133 | | |
|---|
| 4134 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|---|
| 4135 | | conftest$ac_exeext conftest.$ac_ext |
|---|
| 4136 | | LIBS=$ac_check_lib_save_LIBS |
|---|
| 4137 | | fi |
|---|
| 4138 | | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 |
|---|
| 4139 | | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } |
|---|
| 4140 | | if test $ac_cv_lib_socket_setsockopt = yes; then |
|---|
| 4141 | | |
|---|
| 4142 | | |
|---|
| 4143 | | if test -z "$LIBS"; then |
|---|
| 4144 | | LIBS="-lsocket" |
|---|
| 4145 | | else |
|---|
| 4146 | | MATCH=`expr -- "$LIBS" : ".*-lsocket"` |
|---|
| 4147 | | |
|---|
| 4148 | | if test "$MATCH" = "0"; then |
|---|
| 4149 | | LIBS="$LIBS -lsocket" |
|---|
| 4150 | | fi |
|---|
| 4151 | | fi |
|---|
| 4152 | | |
|---|
| 4153 | | |
|---|
| 4154 | | fi |
|---|
| 4155 | | |
|---|
| 4156 | | |
|---|
| 4157 | | fi |
|---|
| 4158 | | |
|---|
| 4159 | | |
|---|
| 4160 | | wi_include_socket_library_done="yes" |
|---|
| 4161 | | fi |
|---|
| 4162 | | |
|---|
| 4163 | | |
|---|
| 4164 | | if test "$wi_include_nsl_library_done" != "yes"; then |
|---|
| 4165 | | { echo "$as_me:$LINENO: checking for gethostent" >&5 |
|---|
| 4166 | | echo $ECHO_N "checking for gethostent... $ECHO_C" >&6; } |
|---|
| 4167 | | if test "${ac_cv_func_gethostent+set}" = set; then |
|---|
| 4168 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 4169 | | else |
|---|
| 4170 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 4171 | | /* confdefs.h. */ |
|---|
| 4172 | | _ACEOF |
|---|
| 4173 | | cat confdefs.h >>conftest.$ac_ext |
|---|
| 4174 | | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 4175 | | /* end confdefs.h. */ |
|---|
| 4176 | | /* Define gethostent to an innocuous variant, in case <limits.h> declares gethostent. |
|---|
| 4177 | | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|---|
| 4178 | | #define gethostent innocuous_gethostent |
|---|
| 4179 | | |
|---|
| 4180 | | /* System header to define __stub macros and hopefully few prototypes, |
|---|
| 4181 | | which can conflict with char gethostent (); below. |
|---|
| 4182 | | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| 4183 | | <limits.h> exists even on freestanding compilers. */ |
|---|
| 4184 | | |
|---|
| 4185 | | #ifdef __STDC__ |
|---|
| 4186 | | # include <limits.h> |
|---|
| 4187 | | #else |
|---|
| 4188 | | # include <assert.h> |
|---|
| 4189 | | #endif |
|---|
| 4190 | | |
|---|
| 4191 | | #undef gethostent |
|---|
| 4192 | | |
|---|
| 4193 | | /* Override any GCC internal prototype to avoid an error. |
|---|
| 4194 | | Use char because int might match the return type of a GCC |
|---|
| 4195 | | builtin and then its argument prototype would still apply. */ |
|---|
| 4196 | | #ifdef __cplusplus |
|---|
| 4197 | | extern "C" |
|---|
| 4198 | | #endif |
|---|
| 4199 | | char gethostent (); |
|---|
| 4200 | | /* The GNU C library defines this for functions which it implements |
|---|
| 4201 | | to always fail with ENOSYS. Some functions are actually named |
|---|
| 4202 | | something starting with __ and the normal name is an alias. */ |
|---|
| 4203 | | #if defined __stub_gethostent || defined __stub___gethostent |
|---|
| 4204 | | choke me |
|---|
| 4205 | | #endif |
|---|
| 4206 | | |
|---|
| 4207 | | int |
|---|
| 4208 | | main () |
|---|
| 4209 | | { |
|---|
| 4210 | | return gethostent (); |
|---|
| 4211 | | ; |
|---|
| 4212 | | return 0; |
|---|
| 4213 | | } |
|---|
| 4214 | | _ACEOF |
|---|
| 4215 | | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 4216 | | if { (ac_try="$ac_link" |
|---|
| 4217 | | case "(($ac_try" in |
|---|
| 4218 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 4219 | | *) ac_try_echo=$ac_try;; |
|---|
| 4220 | | esac |
|---|
| 4221 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| 4222 | | (eval "$ac_link") 2>conftest.er1 |
|---|
| 4223 | | ac_status=$? |
|---|
| 4224 | | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 4225 | | rm -f conftest.er1 |
|---|
| 4226 | | cat conftest.err >&5 |
|---|
| 4227 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4228 | | (exit $ac_status); } && { |
|---|
| 4229 | | test -z "$ac_c_werror_flag" || |
|---|
| 4230 | | test ! -s conftest.err |
|---|
| 4231 | | } && test -s conftest$ac_exeext && |
|---|
| 4232 | | $as_test_x conftest$ac_exeext; then |
|---|
| 4233 | | ac_cv_func_gethostent=yes |
|---|
| 4234 | | else |
|---|
| 4235 | | echo "$as_me: failed program was:" >&5 |
|---|
| 4236 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4237 | | |
|---|
| 4238 | | ac_cv_func_gethostent=no |
|---|
| 4239 | | fi |
|---|
| 4240 | | |
|---|
| 4241 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|---|
| 4242 | | conftest$ac_exeext conftest.$ac_ext |
|---|
| 4243 | | fi |
|---|
| 4244 | | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5 |
|---|
| 4245 | | echo "${ECHO_T}$ac_cv_func_gethostent" >&6; } |
|---|
| 4246 | | if test $ac_cv_func_gethostent = yes; then |
|---|
| 4247 | | : |
|---|
| 4248 | | else |
|---|
| 4249 | | |
|---|
| 4250 | | { echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5 |
|---|
| 4251 | | echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6; } |
|---|
| 4252 | | if test "${ac_cv_lib_nsl_gethostent+set}" = set; then |
|---|
| 4253 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 4254 | | else |
|---|
| 4255 | | ac_check_lib_save_LIBS=$LIBS |
|---|
| 4256 | | LIBS="-lnsl $LIBS" |
|---|
| 4257 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 4258 | | /* confdefs.h. */ |
|---|
| 4259 | | _ACEOF |
|---|
| 4260 | | cat confdefs.h >>conftest.$ac_ext |
|---|
| 4261 | | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 4262 | | /* end confdefs.h. */ |
|---|
| 4263 | | |
|---|
| 4264 | | /* Override any GCC internal prototype to avoid an error. |
|---|
| 4265 | | Use char because int might match the return type of a GCC |
|---|
| 4266 | | builtin and then its argument prototype would still apply. */ |
|---|
| 4267 | | #ifdef __cplusplus |
|---|
| 4268 | | extern "C" |
|---|
| 4269 | | #endif |
|---|
| 4270 | | char gethostent (); |
|---|
| 4271 | | int |
|---|
| 4272 | | main () |
|---|
| 4273 | | { |
|---|
| 4274 | | return gethostent (); |
|---|
| 4275 | | ; |
|---|
| 4276 | | return 0; |
|---|
| 4277 | | } |
|---|
| 4278 | | _ACEOF |
|---|
| 4279 | | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 4280 | | if { (ac_try="$ac_link" |
|---|
| 4281 | | case "(($ac_try" in |
|---|
| 4282 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 4283 | | *) ac_try_echo=$ac_try;; |
|---|
| 4284 | | esac |
|---|
| 4285 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| 4286 | | (eval "$ac_link") 2>conftest.er1 |
|---|
| 4287 | | ac_status=$? |
|---|
| 4288 | | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 4289 | | rm -f conftest.er1 |
|---|
| 4290 | | cat conftest.err >&5 |
|---|
| 4291 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4292 | | (exit $ac_status); } && { |
|---|
| 4293 | | test -z "$ac_c_werror_flag" || |
|---|
| 4294 | | test ! -s conftest.err |
|---|
| 4295 | | } && test -s conftest$ac_exeext && |
|---|
| 4296 | | $as_test_x conftest$ac_exeext; then |
|---|
| 4297 | | ac_cv_lib_nsl_gethostent=yes |
|---|
| 4298 | | else |
|---|
| 4299 | | echo "$as_me: failed program was:" >&5 |
|---|
| 4300 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4301 | | |
|---|
| 4302 | | ac_cv_lib_nsl_gethostent=no |
|---|
| 4303 | | fi |
|---|
| 4304 | | |
|---|
| 4305 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|---|
| 4306 | | conftest$ac_exeext conftest.$ac_ext |
|---|
| 4307 | | LIBS=$ac_check_lib_save_LIBS |
|---|
| 4308 | | fi |
|---|
| 4309 | | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5 |
|---|
| 4310 | | echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6; } |
|---|
| 4311 | | if test $ac_cv_lib_nsl_gethostent = yes; then |
|---|
| 4312 | | |
|---|
| 4313 | | |
|---|
| 4314 | | if test -z "$LIBS"; then |
|---|
| 4315 | | LIBS="-lnsl" |
|---|
| 4316 | | else |
|---|
| 4317 | | MATCH=`expr -- "$LIBS" : ".*-lnsl"` |
|---|
| 4318 | | |
|---|
| 4319 | | if test "$MATCH" = "0"; then |
|---|
| 4320 | | LIBS="$LIBS -lnsl" |
|---|
| 4321 | | fi |
|---|
| 4322 | | fi |
|---|
| 4323 | | |
|---|
| 4324 | | |
|---|
| 4325 | | fi |
|---|
| 4326 | | |
|---|
| 4327 | | |
|---|
| 4328 | | fi |
|---|
| 4329 | | |
|---|
| 4330 | | |
|---|
| 4331 | | wi_include_nsl_library_done="yes" |
|---|
| 4332 | | fi |
|---|
| 4333 | | |
|---|
| 4334 | | |
|---|
| 4335 | | if test "$wi_include_resolv_library_done" != "yes"; then |
|---|
| 4336 | | { echo "$as_me:$LINENO: checking for inet_aton" >&5 |
|---|
| 4337 | | echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6; } |
|---|
| 4338 | | if test "${ac_cv_func_inet_aton+set}" = set; then |
|---|
| 4339 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 4340 | | else |
|---|
| 4341 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 4342 | | /* confdefs.h. */ |
|---|
| 4343 | | _ACEOF |
|---|
| 4344 | | cat confdefs.h >>conftest.$ac_ext |
|---|
| 4345 | | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 4346 | | /* end confdefs.h. */ |
|---|
| 4347 | | /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton. |
|---|
| 4348 | | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|---|
| 4349 | | #define inet_aton innocuous_inet_aton |
|---|
| 4350 | | |
|---|
| 4351 | | /* System header to define __stub macros and hopefully few prototypes, |
|---|
| 4352 | | which can conflict with char inet_aton (); below. |
|---|
| 4353 | | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| 4354 | | <limits.h> exists even on freestanding compilers. */ |
|---|
| 4355 | | |
|---|
| 4356 | | #ifdef __STDC__ |
|---|
| 4357 | | # include <limits.h> |
|---|
| 4358 | | #else |
|---|
| 4359 | | # include <assert.h> |
|---|
| 4360 | | #endif |
|---|
| 4361 | | |
|---|
| 4362 | | #undef inet_aton |
|---|
| 4363 | | |
|---|
| 4364 | | /* Override any GCC internal prototype to avoid an error. |
|---|
| 4365 | | Use char because int might match the return type of a GCC |
|---|
| 4366 | | builtin and then its argument prototype would still apply. */ |
|---|
| 4367 | | #ifdef __cplusplus |
|---|
| 4368 | | extern "C" |
|---|
| 4369 | | #endif |
|---|
| 4370 | | char inet_aton (); |
|---|
| 4371 | | /* The GNU C library defines this for functions which it implements |
|---|
| 4372 | | to always fail with ENOSYS. Some functions are actually named |
|---|
| 4373 | | something starting with __ and the normal name is an alias. */ |
|---|
| 4374 | | #if defined __stub_inet_aton || defined __stub___inet_aton |
|---|
| 4375 | | choke me |
|---|
| 4376 | | #endif |
|---|
| 4377 | | |
|---|
| 4378 | | int |
|---|
| 4379 | | main () |
|---|
| 4380 | | { |
|---|
| 4381 | | return inet_aton (); |
|---|
| 4382 | | ; |
|---|
| 4383 | | return 0; |
|---|
| 4384 | | } |
|---|
| 4385 | | _ACEOF |
|---|
| 4386 | | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 4387 | | if { (ac_try="$ac_link" |
|---|
| 4388 | | case "(($ac_try" in |
|---|
| 4389 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 4390 | | *) ac_try_echo=$ac_try;; |
|---|
| 4391 | | esac |
|---|
| 4392 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| 4393 | | (eval "$ac_link") 2>conftest.er1 |
|---|
| 4394 | | ac_status=$? |
|---|
| 4395 | | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 4396 | | rm -f conftest.er1 |
|---|
| 4397 | | cat conftest.err >&5 |
|---|
| 4398 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4399 | | (exit $ac_status); } && { |
|---|
| 4400 | | test -z "$ac_c_werror_flag" || |
|---|
| 4401 | | test ! -s conftest.err |
|---|
| 4402 | | } && test -s conftest$ac_exeext && |
|---|
| 4403 | | $as_test_x conftest$ac_exeext; then |
|---|
| 4404 | | ac_cv_func_inet_aton=yes |
|---|
| 4405 | | else |
|---|
| 4406 | | echo "$as_me: failed program was:" >&5 |
|---|
| 4407 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4408 | | |
|---|
| 4409 | | ac_cv_func_inet_aton=no |
|---|
| 4410 | | fi |
|---|
| 4411 | | |
|---|
| 4412 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|---|
| 4413 | | conftest$ac_exeext conftest.$ac_ext |
|---|
| 4414 | | fi |
|---|
| 4415 | | { echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5 |
|---|
| 4416 | | echo "${ECHO_T}$ac_cv_func_inet_aton" >&6; } |
|---|
| 4417 | | if test $ac_cv_func_inet_aton = yes; then |
|---|
| 4418 | | : |
|---|
| 4419 | | else |
|---|
| 4420 | | |
|---|
| 4421 | | { echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
|---|
| 4422 | | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6; } |
|---|
| 4423 | | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then |
|---|
| 4424 | | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| 4425 | | else |
|---|
| 4426 | | ac_check_lib_save_LIBS=$LIBS |
|---|
| 4427 | | LIBS="-lresolv $LIBS" |
|---|
| 4428 | | cat >conftest.$ac_ext <<_ACEOF |
|---|
| 4429 | | /* confdefs.h. */ |
|---|
| 4430 | | _ACEOF |
|---|
| 4431 | | cat confdefs.h >>conftest.$ac_ext |
|---|
| 4432 | | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| 4433 | | /* end confdefs.h. */ |
|---|
| 4434 | | |
|---|
| 4435 | | /* Override any GCC internal prototype to avoid an error. |
|---|
| 4436 | | Use char because int might match the return type of a GCC |
|---|
| 4437 | | builtin and then its argument prototype would still apply. */ |
|---|
| 4438 | | #ifdef __cplusplus |
|---|
| 4439 | | extern "C" |
|---|
| 4440 | | #endif |
|---|
| 4441 | | char inet_aton (); |
|---|
| 4442 | | int |
|---|
| 4443 | | main () |
|---|
| 4444 | | { |
|---|
| 4445 | | return inet_aton (); |
|---|
| 4446 | | ; |
|---|
| 4447 | | return 0; |
|---|
| 4448 | | } |
|---|
| 4449 | | _ACEOF |
|---|
| 4450 | | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| 4451 | | if { (ac_try="$ac_link" |
|---|
| 4452 | | case "(($ac_try" in |
|---|
| 4453 | | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| 4454 | | *) ac_try_echo=$ac_try;; |
|---|
| 4455 | | esac |
|---|
| 4456 | | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| 4457 | | (eval "$ac_link") 2>conftest.er1 |
|---|
| 4458 | | ac_status=$? |
|---|
| 4459 | | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| 4460 | | rm -f conftest.er1 |
|---|
| 4461 | | cat conftest.err >&5 |
|---|
| 4462 | | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| 4463 | | (exit $ac_status); } && { |
|---|
| 4464 | | test -z "$ac_c_werror_flag" || |
|---|
| 4465 | | test ! -s conftest.err |
|---|
| 4466 | | } && test -s conftest$ac_exeext && |
|---|
| 4467 | | $as_test_x conftest$ac_exeext; then |
|---|
| 4468 | | ac_cv_lib_resolv_inet_aton=yes |
|---|
| 4469 | | else |
|---|
| 4470 | | echo "$as_me: failed program was:" >&5 |
|---|
| 4471 | | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| 4472 | | |
|---|
| 4473 | | ac_cv_lib_resolv_inet_aton=no |
|---|
| 4474 | | fi |
|---|
| 4475 | | |
|---|
| 4476 | | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|---|
| 4477 | | conftest$ac_exeext conftest.$ac_ext |
|---|
| 4478 | | LIBS=$ac_check_lib_save_LIBS |
|---|
| 4479 | | fi |
|---|
| 4480 | | { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 |
|---|
| 4481 | | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6; } |
|---|
| 4482 | | if test $ac_cv_lib_resolv_inet_aton = yes; then |
|---|
| 4483 | | |
|---|
| 4484 | | |
|---|
| 4485 | | if test -z "$LIBS"; then |
|---|
| 4486 | | LIBS="-lresolv" |
|---|
| 4487 | | else |
|---|
| 4488 | | MATCH=`expr -- "$LIBS" : ".*-lresolv"` |
|---|
| 4489 | | |
|---|
| 4490 | | if test "$MATCH" = "0"; then |
|---|
| 4491 | | LIBS="$LIBS -lresolv" |
|---|
| 4492 | | fi |
|---|
| 4493 | | fi |
|---|
| 4494 | | |
|---|
| 4495 | | |
|---|
| 4496 | | fi |
|---|
| 4497 | | |
|---|
| 4498 | | |
|---|
| 4499 | | fi |
|---|
| 4500 | | |
|---|
| 4501 | | |
|---|
| 4502 | | wi_include_resolv_library_done="yes" |
|---|
| 4503 | | fi |
|---|
| 5142 | | if test "$wi_include_crypto_library_done" != "yes"; then |
|---|
| 5143 | | |
|---|
| 5144 | | if test "$wi_include_extra_ssl_paths_done" != "yes"; then |
|---|
| 5145 | | if test -d /usr/local/ssl/include; then |
|---|
| 5146 | | |
|---|
| 5147 | | if test -z "$CPPFLAGS"; then |
|---|
| 5148 | | CPPFLAGS="-I/usr/local/ssl/include" |
|---|
| | 4463 | |
|---|
| | 4464 | if test "$wi_include_math_library_done" != "yes"; then |
|---|
| | 4465 | { echo "$as_me:$LINENO: checking for pow" >&5 |
|---|
| | 4466 | echo $ECHO_N "checking for pow... $ECHO_C" >&6; } |
|---|
| | 4467 | if test "${ac_cv_func_pow+set}" = set; then |
|---|
| | 4468 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 4469 | else |
|---|
| | 4470 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 4471 | /* confdefs.h. */ |
|---|
| | 4472 | _ACEOF |
|---|
| | 4473 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 4474 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 4475 | /* end confdefs.h. */ |
|---|
| | 4476 | /* Define pow to an innocuous variant, in case <limits.h> declares pow. |
|---|
| | 4477 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|---|
| | 4478 | #define pow innocuous_pow |
|---|
| | 4479 | |
|---|
| | 4480 | /* System header to define __stub macros and hopefully few prototypes, |
|---|
| | 4481 | which can conflict with char pow (); below. |
|---|
| | 4482 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| | 4483 | <limits.h> exists even on freestanding compilers. */ |
|---|
| | 4484 | |
|---|
| | 4485 | #ifdef __STDC__ |
|---|
| | 4486 | # include <limits.h> |
|---|
| | 4487 | #else |
|---|
| | 4488 | # include <assert.h> |
|---|
| | 4489 | #endif |
|---|
| | 4490 | |
|---|
| | 4491 | #undef pow |
|---|
| | 4492 | |
|---|
| | 4493 | /* Override any GCC internal prototype to avoid an error. |
|---|
| | 4494 | Use char because int might match the return type of a GCC |
|---|
| | 4495 | builtin and then its argument prototype would still apply. */ |
|---|
| | 4496 | #ifdef __cplusplus |
|---|
| | 4497 | extern "C" |
|---|
| | 4498 | #endif |
|---|
| | 4499 | char pow (); |
|---|
| | 4500 | /* The GNU C library defines this for functions which it implements |
|---|
| | 4501 | to always fail with ENOSYS. Some functions are actually named |
|---|
| | 4502 | something starting with __ and the normal name is an alias. */ |
|---|
| | 4503 | #if defined __stub_pow || defined __stub___pow |
|---|
| | 4504 | choke me |
|---|
| | 4505 | #endif |
|---|
| | 4506 | |
|---|
| | 4507 | int |
|---|
| | 4508 | main () |
|---|
| | 4509 | { |
|---|
| | 4510 | return pow (); |
|---|
| | 4511 | ; |
|---|
| | 4512 | return 0; |
|---|
| | 4513 | } |
|---|
| | 4514 | _ACEOF |
|---|
| | 4515 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 4516 | if { (ac_try="$ac_link" |
|---|
| | 4517 | case "(($ac_try" in |
|---|
| | 4518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| | 4519 | *) ac_try_echo=$ac_try;; |
|---|
| | 4520 | esac |
|---|
| | 4521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| | 4522 | (eval "$ac_link") 2>conftest.er1 |
|---|
| | 4523 | ac_status=$? |
|---|
| | 4524 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 4525 | rm -f conftest.er1 |
|---|
| | 4526 | cat conftest.err >&5 |
|---|
| | 4527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 4528 | (exit $ac_status); } && { |
|---|
| | 4529 | test -z "$ac_c_werror_flag" || |
|---|
| | 4530 | test ! -s conftest.err |
|---|
| | 4531 | } && test -s conftest$ac_exeext && |
|---|
| | 4532 | $as_test_x conftest$ac_exeext; then |
|---|
| | 4533 | ac_cv_func_pow=yes |
|---|
| | 4534 | else |
|---|
| | 4535 | echo "$as_me: failed program was:" >&5 |
|---|
| | 4536 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 4537 | |
|---|
| | 4538 | ac_cv_func_pow=no |
|---|
| | 4539 | fi |
|---|
| | 4540 | |
|---|
| | 4541 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|---|
| | 4542 | conftest$ac_exeext conftest.$ac_ext |
|---|
| | 4543 | fi |
|---|
| | 4544 | { echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 |
|---|
| | 4545 | echo "${ECHO_T}$ac_cv_func_pow" >&6; } |
|---|
| | 4546 | if test $ac_cv_func_pow = yes; then |
|---|
| | 4547 | : |
|---|
| | 4548 | else |
|---|
| | 4549 | |
|---|
| | 4550 | { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 |
|---|
| | 4551 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; } |
|---|
| | 4552 | if test "${ac_cv_lib_m_sqrt+set}" = set; then |
|---|
| | 4553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 4554 | else |
|---|
| | 4555 | ac_check_lib_save_LIBS=$LIBS |
|---|
| | 4556 | LIBS="-lm $LIBS" |
|---|
| | 4557 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 4558 | /* confdefs.h. */ |
|---|
| | 4559 | _ACEOF |
|---|
| | 4560 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 4561 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 4562 | /* end confdefs.h. */ |
|---|
| | 4563 | |
|---|
| | 4564 | /* Override any GCC internal prototype to avoid an error. |
|---|
| | 4565 | Use char because int might match the return type of a GCC |
|---|
| | 4566 | builtin and then its argument prototype would still apply. */ |
|---|
| | 4567 | #ifdef __cplusplus |
|---|
| | 4568 | extern "C" |
|---|
| | 4569 | #endif |
|---|
| | 4570 | char sqrt (); |
|---|
| | 4571 | int |
|---|
| | 4572 | main () |
|---|
| | 4573 | { |
|---|
| | 4574 | return sqrt (); |
|---|
| | 4575 | ; |
|---|
| | 4576 | return 0; |
|---|
| | 4577 | } |
|---|
| | 4578 | _ACEOF |
|---|
| | 4579 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 4580 | if { (ac_try="$ac_link" |
|---|
| | 4581 | case "(($ac_try" in |
|---|
| | 4582 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| | 4583 | *) ac_try_echo=$ac_try;; |
|---|
| | 4584 | esac |
|---|
| | 4585 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| | 4586 | (eval "$ac_link") 2>conftest.er1 |
|---|
| | 4587 | ac_status=$? |
|---|
| | 4588 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 4589 | rm -f conftest.er1 |
|---|
| | 4590 | cat conftest.err >&5 |
|---|
| | 4591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 4592 | (exit $ac_status); } && { |
|---|
| | 4593 | test -z "$ac_c_werror_flag" || |
|---|
| | 4594 | test ! -s conftest.err |
|---|
| | 4595 | } && test -s conftest$ac_exeext && |
|---|
| | 4596 | $as_test_x conftest$ac_exeext; then |
|---|
| | 4597 | ac_cv_lib_m_sqrt=yes |
|---|
| | 4598 | else |
|---|
| | 4599 | echo "$as_me: failed program was:" >&5 |
|---|
| | 4600 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 4601 | |
|---|
| | 4602 | ac_cv_lib_m_sqrt=no |
|---|
| | 4603 | fi |
|---|
| | 4604 | |
|---|
| | 4605 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|---|
| | 4606 | conftest$ac_exeext conftest.$ac_ext |
|---|
| | 4607 | LIBS=$ac_check_lib_save_LIBS |
|---|
| | 4608 | fi |
|---|
| | 4609 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 |
|---|
| | 4610 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; } |
|---|
| | 4611 | if test $ac_cv_lib_m_sqrt = yes; then |
|---|
| | 4612 | |
|---|
| | 4613 | |
|---|
| | 4614 | if test -z "$LIBS"; then |
|---|
| | 4615 | LIBS="-lm" |
|---|
| 5157 | | fi |
|---|
| 5158 | | |
|---|
| 5159 | | if test -d /usr/kerberos/include; then |
|---|
| 5160 | | |
|---|
| 5161 | | if test -z "$CPPFLAGS"; then |
|---|
| 5162 | | CPPFLAGS="-I/usr/kerberos/include" |
|---|
| | 4624 | |
|---|
| | 4625 | fi |
|---|
| | 4626 | |
|---|
| | 4627 | |
|---|
| | 4628 | fi |
|---|
| | 4629 | |
|---|
| | 4630 | |
|---|
| | 4631 | wi_include_math_library_done="yes" |
|---|
| | 4632 | fi |
|---|
| | 4633 | |
|---|
| | 4634 | |
|---|
| | 4635 | if test "$wi_include_socket_library_done" != "yes"; then |
|---|
| | 4636 | { echo "$as_me:$LINENO: checking for setsockopt" >&5 |
|---|
| | 4637 | echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } |
|---|
| | 4638 | if test "${ac_cv_func_setsockopt+set}" = set; then |
|---|
| | 4639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 4640 | else |
|---|
| | 4641 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 4642 | /* confdefs.h. */ |
|---|
| | 4643 | _ACEOF |
|---|
| | 4644 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 4645 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 4646 | /* end confdefs.h. */ |
|---|
| | 4647 | /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt. |
|---|
| | 4648 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
|---|
| | 4649 | #define setsockopt innocuous_setsockopt |
|---|
| | 4650 | |
|---|
| | 4651 | /* System header to define __stub macros and hopefully few prototypes, |
|---|
| | 4652 | which can conflict with char setsockopt (); below. |
|---|
| | 4653 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
|---|
| | 4654 | <limits.h> exists even on freestanding compilers. */ |
|---|
| | 4655 | |
|---|
| | 4656 | #ifdef __STDC__ |
|---|
| | 4657 | # include <limits.h> |
|---|
| | 4658 | #else |
|---|
| | 4659 | # include <assert.h> |
|---|
| | 4660 | #endif |
|---|
| | 4661 | |
|---|
| | 4662 | #undef setsockopt |
|---|
| | 4663 | |
|---|
| | 4664 | /* Override any GCC internal prototype to avoid an error. |
|---|
| | 4665 | Use char because int might match the return type of a GCC |
|---|
| | 4666 | builtin and then its argument prototype would still apply. */ |
|---|
| | 4667 | #ifdef __cplusplus |
|---|
| | 4668 | extern "C" |
|---|
| | 4669 | #endif |
|---|
| | 4670 | char setsockopt (); |
|---|
| | 4671 | /* The GNU C library defines this for functions which it implements |
|---|
| | 4672 | to always fail with ENOSYS. Some functions are actually named |
|---|
| | 4673 | something starting with __ and the normal name is an alias. */ |
|---|
| | 4674 | #if defined __stub_setsockopt || defined __stub___setsockopt |
|---|
| | 4675 | choke me |
|---|
| | 4676 | #endif |
|---|
| | 4677 | |
|---|
| | 4678 | int |
|---|
| | 4679 | main () |
|---|
| | 4680 | { |
|---|
| | 4681 | return setsockopt (); |
|---|
| | 4682 | ; |
|---|
| | 4683 | return 0; |
|---|
| | 4684 | } |
|---|
| | 4685 | _ACEOF |
|---|
| | 4686 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 4687 | if { (ac_try="$ac_link" |
|---|
| | 4688 | case "(($ac_try" in |
|---|
| | 4689 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| | 4690 | *) ac_try_echo=$ac_try;; |
|---|
| | 4691 | esac |
|---|
| | 4692 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| | 4693 | (eval "$ac_link") 2>conftest.er1 |
|---|
| | 4694 | ac_status=$? |
|---|
| | 4695 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 4696 | rm -f conftest.er1 |
|---|
| | 4697 | cat conftest.err >&5 |
|---|
| | 4698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 4699 | (exit $ac_status); } && { |
|---|
| | 4700 | test -z "$ac_c_werror_flag" || |
|---|
| | 4701 | test ! -s conftest.err |
|---|
| | 4702 | } && test -s conftest$ac_exeext && |
|---|
| | 4703 | $as_test_x conftest$ac_exeext; then |
|---|
| | 4704 | ac_cv_func_setsockopt=yes |
|---|
| | 4705 | else |
|---|
| | 4706 | echo "$as_me: failed program was:" >&5 |
|---|
| | 4707 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 4708 | |
|---|
| | 4709 | ac_cv_func_setsockopt=no |
|---|
| | 4710 | fi |
|---|
| | 4711 | |
|---|
| | 4712 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|---|
| | 4713 | conftest$ac_exeext conftest.$ac_ext |
|---|
| | 4714 | fi |
|---|
| | 4715 | { echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 |
|---|
| | 4716 | echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } |
|---|
| | 4717 | if test $ac_cv_func_setsockopt = yes; then |
|---|
| | 4718 | : |
|---|
| | 4719 | else |
|---|
| | 4720 | |
|---|
| | 4721 | { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 |
|---|
| | 4722 | echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } |
|---|
| | 4723 | if test "${ac_cv_lib_socket_setsockopt+set}" = set; then |
|---|
| | 4724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|---|
| | 4725 | else |
|---|
| | 4726 | ac_check_lib_save_LIBS=$LIBS |
|---|
| | 4727 | LIBS="-lsocket $LIBS" |
|---|
| | 4728 | cat >conftest.$ac_ext <<_ACEOF |
|---|
| | 4729 | /* confdefs.h. */ |
|---|
| | 4730 | _ACEOF |
|---|
| | 4731 | cat confdefs.h >>conftest.$ac_ext |
|---|
| | 4732 | cat >>conftest.$ac_ext <<_ACEOF |
|---|
| | 4733 | /* end confdefs.h. */ |
|---|
| | 4734 | |
|---|
| | 4735 | /* Override any GCC internal prototype to avoid an error. |
|---|
| | 4736 | Use char because int might match the return type of a GCC |
|---|
| | 4737 | builtin and then its argument prototype would still apply. */ |
|---|
| | 4738 | #ifdef __cplusplus |
|---|
| | 4739 | extern "C" |
|---|
| | 4740 | #endif |
|---|
| | 4741 | char setsockopt (); |
|---|
| | 4742 | int |
|---|
| | 4743 | main () |
|---|
| | 4744 | { |
|---|
| | 4745 | return setsockopt (); |
|---|
| | 4746 | ; |
|---|
| | 4747 | return 0; |
|---|
| | 4748 | } |
|---|
| | 4749 | _ACEOF |
|---|
| | 4750 | rm -f conftest.$ac_objext conftest$ac_exeext |
|---|
| | 4751 | if { (ac_try="$ac_link" |
|---|
| | 4752 | case "(($ac_try" in |
|---|
| | 4753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|---|
| | 4754 | *) ac_try_echo=$ac_try;; |
|---|
| | 4755 | esac |
|---|
| | 4756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|---|
| | 4757 | (eval "$ac_link") 2>conftest.er1 |
|---|
| | 4758 | ac_status=$? |
|---|
| | 4759 | grep -v '^ *+' conftest.er1 >conftest.err |
|---|
| | 4760 | rm -f conftest.er1 |
|---|
| | 4761 | cat conftest.err >&5 |
|---|
| | 4762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|---|
| | 4763 | (exit $ac_status); } && { |
|---|
| | 4764 | test -z "$ac_c_werror_flag" || |
|---|
| | 4765 | test ! -s conftest.err |
|---|
| | 4766 | } && test -s conftest$ac_exeext && |
|---|
| | 4767 | $as_test_x conftest$ac_exeext; then |
|---|
| | 4768 | ac_cv_lib_socket_setsockopt=yes |
|---|
| | 4769 | else |
|---|
| | 4770 | echo "$as_me: failed program was:" >&5 |
|---|
| | 4771 | sed 's/^/| /' conftest.$ac_ext >&5 |
|---|
| | 4772 | |
|---|
| | 4773 | ac_cv_lib_socket_setsockopt=no |
|---|
| | 4774 | fi |
|---|
| | 4775 | |
|---|
| | 4776 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|---|
| | 4777 | conftest$ac_exeext conftest.$ac_ext |
|---|
| | 4778 | LIBS=$ac_check_lib_save_LIBS |
|---|
| | 4779 | fi |
|---|
| | 4780 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 |
|---|
| | 4781 | echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } |
|---|
| | 4782 | if test $ac_cv_lib_socket_setsockopt = yes; then |
|---|
| | 4783 | |
|---|
| | 4784 | |
|---|
| | 4785 | if test -z "$LIBS"; then |
|---|
| | 4786 | LIBS="-lsocket" |
|---|