@@ -2232,102 +2232,6 @@ AC_DEFUN([CURL_CHECK_FUNC_GETHOSTBYADDR], [
2232
2232
fi
2233
2233
] )
2234
2234
2235
- dnl CURL_CHECK_FUNC_GAI_STRERROR
2236
- dnl -------------------------------------------------
2237
- dnl Verify if gai_strerror is available, prototyped,
2238
- dnl and can be compiled. If all of these are true,
2239
- dnl and usage has not been previously disallowed with
2240
- dnl shell variable curl_disallow_gai_strerror, then
2241
- dnl HAVE_GAI_STRERROR will be defined.
2242
-
2243
- AC_DEFUN ( [ CURL_CHECK_FUNC_GAI_STRERROR] , [
2244
- AC_REQUIRE ( [ CURL_INCLUDES_WINSOCK2] ) dnl
2245
- AC_REQUIRE ( [ CURL_INCLUDES_NETDB] ) dnl
2246
- #
2247
- tst_links_gai_strerror="unknown"
2248
- tst_proto_gai_strerror="unknown"
2249
- tst_compi_gai_strerror="unknown"
2250
- tst_allow_gai_strerror="unknown"
2251
- #
2252
- AC_MSG_CHECKING ( [ if gai_strerror can be linked] )
2253
- AC_LINK_IFELSE ( [
2254
- AC_LANG_PROGRAM ( [ [
2255
- $curl_includes_winsock2
2256
- $curl_includes_bsdsocket
2257
- $curl_includes_netdb
2258
- ] ] ,[ [
2259
- if(0 != gai_strerror(0))
2260
- return 1;
2261
- ] ] )
2262
- ] ,[
2263
- AC_MSG_RESULT ( [ yes] )
2264
- tst_links_gai_strerror="yes"
2265
- ] ,[
2266
- AC_MSG_RESULT ( [ no] )
2267
- tst_links_gai_strerror="no"
2268
- ] )
2269
- #
2270
- if test "$tst_links_gai_strerror" = "yes"; then
2271
- AC_MSG_CHECKING ( [ if gai_strerror is prototyped] )
2272
- AC_EGREP_CPP ( [ gai_strerror] ,[
2273
- $curl_includes_winsock2
2274
- $curl_includes_bsdsocket
2275
- $curl_includes_netdb
2276
- ] ,[
2277
- AC_MSG_RESULT ( [ yes] )
2278
- tst_proto_gai_strerror="yes"
2279
- ] ,[
2280
- AC_MSG_RESULT ( [ no] )
2281
- tst_proto_gai_strerror="no"
2282
- ] )
2283
- fi
2284
- #
2285
- if test "$tst_proto_gai_strerror" = "yes"; then
2286
- AC_MSG_CHECKING ( [ if gai_strerror is compilable] )
2287
- AC_COMPILE_IFELSE ( [
2288
- AC_LANG_PROGRAM ( [ [
2289
- $curl_includes_winsock2
2290
- $curl_includes_bsdsocket
2291
- $curl_includes_netdb
2292
- ] ] ,[ [
2293
- if(0 != gai_strerror(0))
2294
- return 1;
2295
- ] ] )
2296
- ] ,[
2297
- AC_MSG_RESULT ( [ yes] )
2298
- tst_compi_gai_strerror="yes"
2299
- ] ,[
2300
- AC_MSG_RESULT ( [ no] )
2301
- tst_compi_gai_strerror="no"
2302
- ] )
2303
- fi
2304
- #
2305
- if test "$tst_compi_gai_strerror" = "yes"; then
2306
- AC_MSG_CHECKING ( [ if gai_strerror usage allowed] )
2307
- if test "x$curl_disallow_gai_strerror" != "xyes"; then
2308
- AC_MSG_RESULT ( [ yes] )
2309
- tst_allow_gai_strerror="yes"
2310
- else
2311
- AC_MSG_RESULT ( [ no] )
2312
- tst_allow_gai_strerror="no"
2313
- fi
2314
- fi
2315
- #
2316
- AC_MSG_CHECKING ( [ if gai_strerror might be used] )
2317
- if test "$tst_links_gai_strerror" = "yes" &&
2318
- test "$tst_proto_gai_strerror" = "yes" &&
2319
- test "$tst_compi_gai_strerror" = "yes" &&
2320
- test "$tst_allow_gai_strerror" = "yes"; then
2321
- AC_MSG_RESULT ( [ yes] )
2322
- AC_DEFINE_UNQUOTED ( HAVE_GAI_STRERROR , 1 ,
2323
- [ Define to 1 if you have the gai_strerror function.] )
2324
- curl_cv_func_gai_strerror="yes"
2325
- else
2326
- AC_MSG_RESULT ( [ no] )
2327
- curl_cv_func_gai_strerror="no"
2328
- fi
2329
- ] )
2330
-
2331
2235
2332
2236
dnl CURL_CHECK_FUNC_GETHOSTBYADDR_R
2333
2237
dnl -------------------------------------------------
0 commit comments