From 3207f81787f33da3e25ba8d62ecb923f7aef9861 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 20 Mar 2010 17:51:55 +1100 Subject: build: more functions that are in -lsocket -lnsl on some systems --- source4/heimdal_build/wscript_configure | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'source4/heimdal_build/wscript_configure') diff --git a/source4/heimdal_build/wscript_configure b/source4/heimdal_build/wscript_configure index 04d77d6674..83d171cbee 100644 --- a/source4/heimdal_build/wscript_configure +++ b/source4/heimdal_build/wscript_configure @@ -11,11 +11,17 @@ conf.CHECK_HEADERS('''crypt.h errno.h inttypes.h netdb.h signal.h sys/bswap.h conf.CHECK_HEADERS('curses.h term.h termcap.h', add_headers=False) -conf.CHECK_FUNCS('''atexit cgetent getprogname setprogname inet_aton gethostname getnameinfo - putenv rcmd readv sendmsg setitimer socket strlwr strncasecmp +conf.CHECK_FUNCS('''atexit cgetent getprogname setprogname gethostname + putenv rcmd readv sendmsg setitimer strlwr strncasecmp strptime strsep strsep_copy strtok_r strupr swab umask uname unsetenv - closefrom hstrerror err warn errx warnx flock getipnodebyname - getipnodebyaddr freehostent writev''') + closefrom err warn errx warnx flock writev''') + +conf.CHECK_FUNCS_IN('hstrerror', 'resolv socket nsl', checklibc=True) +conf.CHECK_FUNCS_IN('''getnameinfo sendmsg socket getipnodebyname gethostent gethostent_r + sethostent endhostent getipnodebyaddr freehostent gethostbyname + gethostbyname_r gethostbyaddr''', + 'socket nsl', + checklibc=True) conf.CHECK_FUNCS('iruserok', checklink=True) -- cgit