mirror of
https://git.savannah.nongnu.org/git/exosip.git
synced 2026-01-12 00:19:10 +08:00
remove file
git-svn-id: svn://svn.savannah.nongnu.org/exosip/trunk/exosip@229 b4fb6cef-10e1-4022-a11b-4669fa468031
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
|
||||
EXTRA_DIST = config.guess config.sub install-sh missing mkinstalldirs \
|
||||
ltmain.sh acx_pthread.m4 ac_c_gethostbyname_r.m4 aclocal-include.m4
|
||||
ltmain.sh acx_pthread.m4 aclocal-include.m4
|
||||
|
||||
@@ -1,78 +0,0 @@
|
||||
dnl @synopsis AC_caolan_FUNC_WHICH_GETHOSTBYNAME_R
|
||||
dnl
|
||||
dnl Provides a test to determine the correct
|
||||
dnl way to call gethostbyname_r
|
||||
dnl
|
||||
dnl defines HAVE_FUNC_GETHOSTBYNAME_R_6 if it needs 6 arguments (e.g linux)
|
||||
dnl defines HAVE_FUNC_GETHOSTBYNAME_R_5 if it needs 5 arguments (e.g. solaris)
|
||||
dnl defines HAVE_FUNC_GETHOSTBYNAME_R_3 if it needs 3 arguments (e.g. osf/1)
|
||||
dnl
|
||||
dnl if used in conjunction in gethostname.c the api demonstrated
|
||||
dnl in test.c can be used regardless of which gethostbyname_r
|
||||
dnl exists. These example files found at
|
||||
dnl http://www.csn.ul.ie/~caolan/publink/gethostbyname_r
|
||||
dnl
|
||||
dnl @version $Id: ac_c_gethostbyname_r.m4,v 1.1.1.1 2003-03-11 21:23:07 aymeric Exp $
|
||||
dnl @author Caolan McNamara <caolan@skynet.ie>
|
||||
dnl
|
||||
dnl based on David Arnold's autoconf suggestion in the threads faq
|
||||
dnl
|
||||
AC_DEFUN(AC_caolan_FUNC_WHICH_GETHOSTBYNAME_R,
|
||||
[AC_CACHE_CHECK(for which type of gethostbyname_r, ac_cv_func_which_gethostname_r, [
|
||||
AC_CHECK_FUNC(gethostbyname_r, [
|
||||
AC_TRY_COMPILE([
|
||||
# include <netdb.h>
|
||||
], [
|
||||
|
||||
char *name;
|
||||
struct hostent *he;
|
||||
struct hostent_data data;
|
||||
(void) gethostbyname_r(name, he, &data);
|
||||
|
||||
],ac_cv_func_which_gethostname_r=three,
|
||||
[
|
||||
dnl ac_cv_func_which_gethostname_r=no
|
||||
AC_TRY_COMPILE([
|
||||
# include <netdb.h>
|
||||
], [
|
||||
char *name;
|
||||
struct hostent *he, *res;
|
||||
char buffer[2048];
|
||||
int buflen = 2048;
|
||||
int h_errnop;
|
||||
(void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
|
||||
],ac_cv_func_which_gethostname_r=six,
|
||||
|
||||
[
|
||||
dnl ac_cv_func_which_gethostname_r=no
|
||||
AC_TRY_COMPILE([
|
||||
# include <netdb.h>
|
||||
], [
|
||||
char *name;
|
||||
struct hostent *he;
|
||||
char buffer[2048];
|
||||
int buflen = 2048;
|
||||
int h_errnop;
|
||||
(void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
|
||||
],ac_cv_func_which_gethostname_r=five,ac_cv_func_which_gethostname_r=no)
|
||||
|
||||
]
|
||||
|
||||
)
|
||||
]
|
||||
)]
|
||||
,ac_cv_func_which_gethostname_r=no)])
|
||||
|
||||
if test $ac_cv_func_which_gethostname_r = six; then
|
||||
AC_DEFINE(HAVE_FUNC_GETHOSTBYNAME_R_6, 1, [gethostname_r has 6 arguments here.] )
|
||||
dnl AC_DEFINE(HAVE_FUNC_GETHOSTBYNAME_R_6)
|
||||
elif test $ac_cv_func_which_gethostname_r = five; then
|
||||
AC_DEFINE(HAVE_FUNC_GETHOSTBYNAME_R_5, 1, [gethostname_r has 5 arguments here.])
|
||||
dnl AC_DEFINE(HAVE_FUNC_GETHOSTBYNAME_R_5)
|
||||
elif test $ac_cv_func_which_gethostname_r = three; then
|
||||
AC_DEFINE(HAVE_FUNC_GETHOSTBYNAME_R_3, 1, [gethostname_r has 3 arguments here.])
|
||||
dnl AC_DEFINE(HAVE_FUNC_GETHOSTBYNAME_R_3)
|
||||
fi
|
||||
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user