From ac59d9fb458452daf75d535c638cab17e6f17fe5 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 26 Apr 2001 20:02:39 +0000 Subject: Check for gethostbyname_r so e_gethostbyname_r will DTRT. * configure.in: Check for gethostbyname_r so e_gethostbyname_r will DTRT. svn path=/trunk/; revision=9591 --- ChangeLog | 3 +++ configure.in | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 840074d7c7..a038e83338 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,9 @@ and libs from all CFLAGS and LIBS variables. Add GAL_LIBS for things that need to depend on just gal (for gunicode). + * configure.in: Check for gethostbyname_r so e_gethostbyname_r + will DTRT. + 2001-04-24 Dan Winship * configure.in: Bump up the gal requirement diff --git a/configure.in b/configure.in index 5e8fa126e8..3f7135c1d2 100644 --- a/configure.in +++ b/configure.in @@ -154,6 +154,7 @@ dnl ************************************************** dnl gethostbyname_r prototype dnl ************************************************** +AC_CHECK_FUNCS(gethostbyname_r,[ AC_CACHE_CHECK([if gethostbyname_r wants five arguments], ac_cv_gethostbyname_r_five_args, [ AC_TRY_COMPILE([ @@ -176,7 +177,7 @@ AC_CACHE_CHECK([if gethostbyname_r wants five arguments], ac_cv_gethostbyname_r_ ],[ ac_cv_gethostbyname_r_five_args=no ]) -]) +])]) if test x"$ac_cv_gethostbyname_r_five_args" = xyes ; then AC_DEFINE(GETHOSTBYNAME_R_FIVE_ARGS) -- cgit v1.2.3