Changeset 5773

Show
Ignore:
Timestamp:
08/22/08 02:12:50 (3 months ago)
Author:
morris
Message:

WI_INCLUDE_LIBWIRED_LIBRARIES

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trackerd/trunk/configure

    r5584 r5773  
    18181818 
    18191819 
     1820 
     1821 
     1822 
     1823 
     1824 
    18201825# Get host 
    18211826ac_aux_dir= 
     
    31213126        cat >conftest.$ac_ext <<_ACEOF 
    31223127 
    3123                 int main(void) { 
     3128                int main() { 
    31243129                        return 0; 
    31253130                } 
     
    31833188        cat >conftest.$ac_ext <<_ACEOF 
    31843189 
    3185                 int main(void) { 
     3190                int main() { 
    31863191                        return 0; 
    31873192                } 
     
    32453250        cat >conftest.$ac_ext <<_ACEOF 
    32463251 
    3247                 int main(void) { 
     3252                int main() { 
    32483253                        return 0; 
    32493254                } 
     
    33073312        cat >conftest.$ac_ext <<_ACEOF 
    33083313 
    3309                 int main(void) { 
     3314                int main() { 
    33103315                        return 0; 
    33113316                } 
     
    33693374        cat >conftest.$ac_ext <<_ACEOF 
    33703375 
    3371                 int main(void) { 
     3376                int main() { 
    33723377                        return 0; 
    33733378                } 
     
    34313436        cat >conftest.$ac_ext <<_ACEOF 
    34323437 
    3433                 int main(void) { 
     3438                int main() { 
    34343439                        return 0; 
    34353440                } 
     
    34933498        cat >conftest.$ac_ext <<_ACEOF 
    34943499 
    3495                 int main(void) { 
     3500                int main() { 
    34963501                        return 0; 
    34973502                } 
     
    35553560        cat >conftest.$ac_ext <<_ACEOF 
    35563561 
    3557                 int main(void) { 
     3562                int main() { 
    35583563                        return 0; 
    35593564                } 
     
    36173622        cat >conftest.$ac_ext <<_ACEOF 
    36183623 
    3619                 int main(void) { 
     3624                int main() { 
    36203625                        return 0; 
    36213626                } 
     
    38183823   { (exit 1); exit 1; }; } 
    38193824fi 
    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 
    45043825 
    45053826ac_ext=c 
     
    51404461 
    51414462 
    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 
     4466echo $ECHO_N "checking for pow... $ECHO_C" >&6; } 
     4467if test "${ac_cv_func_pow+set}" = set; then 
     4468  echo $ECHO_N "(cached) $ECHO_C" >&6 
     4469else 
     4470  cat >conftest.$ac_ext <<_ACEOF 
     4471/* confdefs.h.  */ 
     4472_ACEOF 
     4473cat confdefs.h >>conftest.$ac_ext 
     4474cat >>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 
     4497extern "C" 
     4498#endif 
     4499char 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 
     4504choke me 
     4505#endif 
     4506 
     4507int 
     4508main () 
     4509
     4510return pow (); 
     4511  ; 
     4512  return 0; 
     4513
     4514_ACEOF 
     4515rm -f conftest.$ac_objext conftest$ac_exeext 
     4516if { (ac_try="$ac_link" 
     4517case "(($ac_try" in 
     4518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     4519  *) ac_try_echo=$ac_try;; 
     4520esac 
     4521eval "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 
     4534else 
     4535  echo "$as_me: failed program was:" >&5 
     4536sed 's/^/| /' conftest.$ac_ext >&5 
     4537 
     4538        ac_cv_func_pow=no 
     4539fi 
     4540 
     4541rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     4542      conftest$ac_exeext conftest.$ac_ext 
     4543fi 
     4544{ echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5 
     4545echo "${ECHO_T}$ac_cv_func_pow" >&6; } 
     4546if test $ac_cv_func_pow = yes; then 
     4547  : 
     4548else 
     4549 
     4550                        { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 
     4551echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; } 
     4552if test "${ac_cv_lib_m_sqrt+set}" = set; then 
     4553  echo $ECHO_N "(cached) $ECHO_C" >&6 
     4554else 
     4555  ac_check_lib_save_LIBS=$LIBS 
     4556LIBS="-lm  $LIBS" 
     4557cat >conftest.$ac_ext <<_ACEOF 
     4558/* confdefs.h.  */ 
     4559_ACEOF 
     4560cat confdefs.h >>conftest.$ac_ext 
     4561cat >>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 
     4568extern "C" 
     4569#endif 
     4570char sqrt (); 
     4571int 
     4572main () 
     4573
     4574return sqrt (); 
     4575  ; 
     4576  return 0; 
     4577
     4578_ACEOF 
     4579rm -f conftest.$ac_objext conftest$ac_exeext 
     4580if { (ac_try="$ac_link" 
     4581case "(($ac_try" in 
     4582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     4583  *) ac_try_echo=$ac_try;; 
     4584esac 
     4585eval "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 
     4598else 
     4599  echo "$as_me: failed program was:" >&5 
     4600sed 's/^/| /' conftest.$ac_ext >&5 
     4601 
     4602        ac_cv_lib_m_sqrt=no 
     4603fi 
     4604 
     4605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     4606      conftest$ac_exeext conftest.$ac_ext 
     4607LIBS=$ac_check_lib_save_LIBS 
     4608fi 
     4609{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 
     4610echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; } 
     4611if test $ac_cv_lib_m_sqrt = yes; then 
     4612 
     4613 
     4614        if test -z "$LIBS"; then 
     4615                LIBS="-lm" 
    51494616        else 
    5150                 MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/local/ssl/include"` 
     4617                MATCH=`expr -- "$LIBS" : ".*-lm"` 
    51514618 
    51524619                if test "$MATCH" = "0"; then 
    5153                         CPPFLAGS="$CPPFLAGS -I/usr/local/ssl/include
     4620                        LIBS="$LIBS -lm
    51544621                fi 
    51554622        fi 
    51564623 
    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 
     4625fi 
     4626 
     4627 
     4628fi 
     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 
     4637echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6; } 
     4638if test "${ac_cv_func_setsockopt+set}" = set; then 
     4639  echo $ECHO_N "(cached) $ECHO_C" >&6 
     4640else 
     4641  cat >conftest.$ac_ext <<_ACEOF 
     4642/* confdefs.h.  */ 
     4643_ACEOF 
     4644cat confdefs.h >>conftest.$ac_ext 
     4645cat >>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 
     4668extern "C" 
     4669#endif 
     4670char 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 
     4675choke me 
     4676#endif 
     4677 
     4678int 
     4679main () 
     4680
     4681return setsockopt (); 
     4682  ; 
     4683  return 0; 
     4684
     4685_ACEOF 
     4686rm -f conftest.$ac_objext conftest$ac_exeext 
     4687if { (ac_try="$ac_link" 
     4688case "(($ac_try" in 
     4689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     4690  *) ac_try_echo=$ac_try;; 
     4691esac 
     4692eval "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 
     4705else 
     4706  echo "$as_me: failed program was:" >&5 
     4707sed 's/^/| /' conftest.$ac_ext >&5 
     4708 
     4709        ac_cv_func_setsockopt=no 
     4710fi 
     4711 
     4712rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     4713      conftest$ac_exeext conftest.$ac_ext 
     4714fi 
     4715{ echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5 
     4716echo "${ECHO_T}$ac_cv_func_setsockopt" >&6; } 
     4717if test $ac_cv_func_setsockopt = yes; then 
     4718  : 
     4719else 
     4720 
     4721                        { echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5 
     4722echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6; } 
     4723if test "${ac_cv_lib_socket_setsockopt+set}" = set; then 
     4724  echo $ECHO_N "(cached) $ECHO_C" >&6 
     4725else 
     4726  ac_check_lib_save_LIBS=$LIBS 
     4727LIBS="-lsocket  $LIBS" 
     4728cat >conftest.$ac_ext <<_ACEOF 
     4729/* confdefs.h.  */ 
     4730_ACEOF 
     4731cat confdefs.h >>conftest.$ac_ext 
     4732cat >>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 
     4739extern "C" 
     4740#endif 
     4741char setsockopt (); 
     4742int 
     4743main () 
     4744
     4745return setsockopt (); 
     4746  ; 
     4747  return 0; 
     4748
     4749_ACEOF 
     4750rm -f conftest.$ac_objext conftest$ac_exeext 
     4751if { (ac_try="$ac_link" 
     4752case "(($ac_try" in 
     4753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 
     4754  *) ac_try_echo=$ac_try;; 
     4755esac 
     4756eval "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 
     4769else 
     4770  echo "$as_me: failed program was:" >&5 
     4771sed 's/^/| /' conftest.$ac_ext >&5 
     4772 
     4773        ac_cv_lib_socket_setsockopt=no 
     4774fi 
     4775 
     4776rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 
     4777      conftest$ac_exeext conftest.$ac_ext 
     4778LIBS=$ac_check_lib_save_LIBS 
     4779fi 
     4780{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5 
     4781echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6; } 
     4782if test $ac_cv_lib_socket_setsockopt = yes; then 
     4783 
     4784 
     4785        if test -z "$LIBS"; then 
     4786                LIBS="-lsocket" 
    51634787        else 
    5164                 MATCH=`expr -- "$CPPFLAGS" : ".*-I/usr/kerberos/include"` 
     4788                MATCH=`expr -- "$LIBS" : ".*-lsocket"` 
    51654789 
    51664790                if test "$MATCH" = "0"; then 
    5167                         CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include
     4791                        LIBS="$LIBS -lsocket
    51684792                fi 
    51694793        fi 
    51704794 
    5171                 fi 
    5172  
    5173                 if test -d /usr/local/ssl/lib; then 
    5174  
    5175         if test -z "$LDFLAGS"; then 
    5176                 LDFLAGS="-L/usr/local/ssl/lib" 
     4795 
     4796fi 
     4797 
     4798 
     4799fi 
     4800 
     4801 
     4802                wi_include_socket_library_done="yes" 
     4803        fi 
     4804 
     4805 
     4806        if test "$wi_include_nsl_library_done" != "yes"; then 
     4807                { echo "$as_me:$LINENO: checking for gethostent" >&5 
     4808echo $ECHO_N "checking for gethostent... $ECHO_C" >&6; } 
     4809if test "${ac_cv_func_gethostent+set}" = set; then 
     4810  echo $ECHO_N "(cached) $ECHO_C" >&6 
     4811else 
     4812  cat >conftest.$ac_ext <<_ACEOF 
     4813/* confdefs.h.  */ 
     4814_ACEOF 
     4815cat confdefs.h >>conftest.$ac_ext 
     4816cat >>conftest.$ac_ext <<_ACEOF 
     4817/* end confdefs.h.  */ 
     4818/* Define gethostent to an innocuous variant, in case <limits.h> declares gethostent. 
     4819   For example, HP-UX 11i <limits.h> declares gettimeofday.  */ 
     4820#define gethostent innocuous_gethostent 
     4821 
     4822/* System header to define __stub macros and hopefully few prototypes, 
     4823    which can conflict with char gethostent (); below. 
     4824    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 
     4825    <limits.h> exists even on freestanding compilers.  */ 
     4826 
     4827#ifdef __STDC__ 
     4828# include <limits.h> 
     4829#else 
     4830# include <assert.h> 
     4831#endif 
     4832 
     4833#undef gethostent 
     4834 
     4835/* Override any GCC internal prototype to avoid an error. 
     4836   Use char because int might match the return type of a GCC 
     4837   builtin and then its argument prototype would still apply.  */ 
     4838#ifdef __cplusplus 
     4839extern "C" 
     4840#endif 
     4841char gethostent (); 
     4842/* The GNU C library defines this for functions which it implements 
     4843    to always fail with ENOSYS.  Some functions are actually named 
     4844    something starting with __ and the normal name is an alias.  */ 
     4845#if defined __stub_gethostent || defined __stub___gethostent 
     4846choke me 
     4847#endif 
     4848 
     4849int