diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2010-11-05 10:48:00 +0000 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2010-11-05 10:48:00 +0000 |
commit | 42df42d68b891bedae8db7e1a81ea26aa3f56bca (patch) | |
tree | 475de2cec14c401bcf3780cfe378927ca74f0197 /m4 | |
parent | ce35f0abe5467d056c79abfe9bfb8acbc8f0c580 (diff) | |
download | classpath-42df42d68b891bedae8db7e1a81ea26aa3f56bca.tar.gz |
2010-11-04 Andrew John Hughes <ahughes@redhat.com>
* config.rpath:
Add file required by autogen.sh due to use
of AM_ICONV.
* m4/ax_func_which_gethostbyname_r.m4:
Use AC_LANG_SOURCE as suggested by warnings from
autoconf 2.68.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/ax_func_which_gethostbyname_r.m4 | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/m4/ax_func_which_gethostbyname_r.m4 b/m4/ax_func_which_gethostbyname_r.m4 index d1811efe3..6fbe8eede 100644 --- a/m4/ax_func_which_gethostbyname_r.m4 +++ b/m4/ax_func_which_gethostbyname_r.m4 @@ -54,13 +54,13 @@ ac_cv_func_which_gethostbyname_r=unknown # netdb.h is not declaring the function, and the compiler is thereby # assuming an implicit prototype. In which case, we're out of luck. # -AC_COMPILE_IFELSE( +AC_COMPILE_IFELSE([AC_LANG_SOURCE([ AC_LANG_PROGRAM( [[#include <netdb.h>]], [[ char *name = "www.gnu.org"; (void)gethostbyname_r(name) /* ; */ - ]]), + ]])])], ac_cv_func_which_gethostbyname_r=no) # @@ -70,7 +70,7 @@ AC_COMPILE_IFELSE( if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then -AC_COMPILE_IFELSE( +AC_COMPILE_IFELSE([AC_LANG_SOURCE([ AC_LANG_PROGRAM( [[#include <netdb.h>]], [[ @@ -80,7 +80,7 @@ AC_COMPILE_IFELSE( 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 @@ -92,7 +92,7 @@ fi if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then -AC_COMPILE_IFELSE( +AC_COMPILE_IFELSE([AC_LANG_SOURCE([ AC_LANG_PROGRAM( [[#include <netdb.h>]], [[ @@ -102,7 +102,7 @@ AC_COMPILE_IFELSE( 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 @@ -114,7 +114,7 @@ fi if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then -AC_COMPILE_IFELSE( +AC_COMPILE_IFELSE([AC_LANG_SOURCE([ AC_LANG_PROGRAM( [[#include <netdb.h>]], [[ @@ -122,7 +122,7 @@ AC_COMPILE_IFELSE( struct hostent ret; struct hostent_data data; (void)gethostbyname_r(name, &ret, &data) /* ; */ - ]]), + ]])])], ac_cv_func_which_gethostbyname_r=three) fi |