summaryrefslogtreecommitdiff
path: root/source4/heimdal_build/wscript_configure
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-11-19 23:25:45 +1100
committerStefan Metzmacher <metze@samba.org>2013-01-19 10:32:17 +0100
commitdda48146a2781fe685eeb9dc5194d142ee5ca0ef (patch)
treeb098ac5828b4d226227e5f286e13985d1512d0d7 /source4/heimdal_build/wscript_configure
parentd90b709ebb22fb40cbd46bdddd28d9ec1be7b0ce (diff)
downloadsamba-dda48146a2781fe685eeb9dc5194d142ee5ca0ef.tar.gz
samba-dda48146a2781fe685eeb9dc5194d142ee5ca0ef.tar.bz2
samba-dda48146a2781fe685eeb9dc5194d142ee5ca0ef.zip
heimdal_build: Try again to sort out the strerror_r mess
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/heimdal_build/wscript_configure')
-rwxr-xr-xsource4/heimdal_build/wscript_configure7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/heimdal_build/wscript_configure b/source4/heimdal_build/wscript_configure
index 168be6d0e4..2bb465a1fd 100755
--- a/source4/heimdal_build/wscript_configure
+++ b/source4/heimdal_build/wscript_configure
@@ -28,6 +28,13 @@ conf.CHECK_FUNCS('''atexit cgetent getprogname setprogname gethostname
strptime strsep strsep_copy strtok_r strupr swab umask uname unsetenv
closefrom err warn errx warnx flock writev''')
+if conf.CHECK_FUNCS('strerror_r'):
+ # Check if strerror_r is BSD compatible (default GNU implementation is not what Heimdal expects)
+ conf.CHECK_CODE('int strerror_r(int errnum, char *buf, size_t buflen);',
+ 'STRERROR_R_PROTO_COMPATIBLE',
+ headers='string.h', addmain=False, link=False,
+ msg="Checking for XSI (rather than GNU) prototype for strerror_r")
+
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