X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bebf40d5a0c486ec4f524fa15a886c748c0e469a..cd794127ff73748f8199587897f57aa02c5ef059:/build/aclocal/ax_func_which_gethostbyname_r.m4 diff --git a/build/aclocal/ax_func_which_gethostbyname_r.m4 b/build/aclocal/ax_func_which_gethostbyname_r.m4 index b71519edb6..0b043ac4db 100644 --- a/build/aclocal/ax_func_which_gethostbyname_r.m4 +++ b/build/aclocal/ax_func_which_gethostbyname_r.m4 @@ -45,13 +45,15 @@ ac_cv_func_which_gethostbyname_r=unknown # assuming an implicit prototype. In which case, we're out of luck. # AC_COMPILE_IFELSE( - AC_LANG_PROGRAM( - [[#include ]], - [[ - char *name = "www.gnu.org"; - (void)gethostbyname_r(name) /* ; */ - ]]), - ac_cv_func_which_gethostbyname_r=no) + [AC_LANG_PROGRAM( + [[#include ]], + [[ + char *name = "www.gnu.org"; + (void)gethostbyname_r(name) /* ; */ + ]] + )], + ac_cv_func_which_gethostbyname_r=no + ) # # SIX ARGUMENTS @@ -61,17 +63,19 @@ AC_COMPILE_IFELSE( if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then AC_COMPILE_IFELSE( - AC_LANG_PROGRAM( - [[#include ]], - [[ - char *name = "www.gnu.org"; - struct hostent ret, *retp; - char buf@<:@1024@:>@; - int buflen = 1024; - int my_h_errno; - (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ - ]]), - ac_cv_func_which_gethostbyname_r=six) + [AC_LANG_PROGRAM( + [[#include ]], + [[ + char *name = "www.gnu.org"; + struct hostent ret, *retp; + char buf@<:@1024@:>@; + int buflen = 1024; + int my_h_errno; + (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */ + ]] + )], + ac_cv_func_which_gethostbyname_r=six + ) fi @@ -83,17 +87,19 @@ fi if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then AC_COMPILE_IFELSE( - AC_LANG_PROGRAM( + [AC_LANG_PROGRAM( [[#include ]], - [[ - char *name = "www.gnu.org"; - struct hostent ret; - char buf@<:@1024@:>@; - int buflen = 1024; - int my_h_errno; - (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */ - ]]), - ac_cv_func_which_gethostbyname_r=five) + [[ + char *name = "www.gnu.org"; + struct hostent ret; + char buf@<:@1024@:>@; + int buflen = 1024; + int my_h_errno; + (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */ + ]] + )], + ac_cv_func_which_gethostbyname_r=five + ) fi @@ -105,15 +111,17 @@ fi if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then AC_COMPILE_IFELSE( - AC_LANG_PROGRAM( - [[#include ]], - [[ - char *name = "www.gnu.org"; - struct hostent ret; - struct hostent_data data; - (void)gethostbyname_r(name, &ret, &data) /* ; */ - ]]), - ac_cv_func_which_gethostbyname_r=three) + [AC_LANG_PROGRAM( + [[#include ]], + [[ + char *name = "www.gnu.org"; + struct hostent ret; + struct hostent_data data; + (void)gethostbyname_r(name, &ret, &data) /* ; */ + ]] + )], + ac_cv_func_which_gethostbyname_r=three + ) fi