summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-01-14 15:21:12 -0800
committerStefan Metzmacher <metze@samba.org>2013-01-15 08:28:45 +0100
commit7fe400de4c189c8bdf0cc8afdebde2f21680fac2 (patch)
treef78c6eee4050781abee46681cabd3046f8142ebb /lib
parente54252ceec213644a8d812e6374476639f764643 (diff)
downloadsamba-7fe400de4c189c8bdf0cc8afdebde2f21680fac2.tar.gz
samba-7fe400de4c189c8bdf0cc8afdebde2f21680fac2.tar.bz2
samba-7fe400de4c189c8bdf0cc8afdebde2f21680fac2.zip
lib/replace: Add ucontext configure waf checks.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/wscript11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript
index 674b99d1f2..dff5847ba8 100644
--- a/lib/replace/wscript
+++ b/lib/replace/wscript
@@ -79,7 +79,7 @@ struct foo bar = { .y = 'X', .x = 1 };
conf.CHECK_HEADERS('sys/id.h sys/ioctl.h sys/ipc.h sys/mman.h sys/mode.h sys/ndir.h sys/priv.h')
conf.CHECK_HEADERS('sys/resource.h sys/security.h sys/shm.h sys/statfs.h sys/statvfs.h sys/termio.h')
conf.CHECK_HEADERS('sys/vfs.h sys/xattr.h termio.h termios.h sys/file.h')
- conf.CHECK_HEADERS('sys/wait.h sys/stat.h malloc.h grp.h')
+ conf.CHECK_HEADERS('sys/ucontext.h sys/wait.h sys/stat.h malloc.h grp.h')
conf.CHECK_HEADERS('sys/select.h setjmp.h utime.h sys/syslog.h syslog.h')
conf.CHECK_HEADERS('stdarg.h vararg.h sys/mount.h mntent.h')
conf.CHECK_HEADERS('stropts.h unix.h string.h strings.h sys/param.h limits.h')
@@ -203,6 +203,15 @@ struct foo bar = { .y = 'X', .x = 1 };
lib='nsl socket',
headers='sys/socket.h netdb.h netinet/in.h')
+ if conf.CONFIG_SET('HAVE_SYS_UCONTEXT_H') and conf.CONFIG_SET('HAVE_SIGNAL_H'):
+ conf.CHECK_CODE('''
+ ucontext_t uc;
+ sigaddset(&uc.uc_sigmask, SIGUSR1);
+ ''',
+ 'HAVE_UCONTEXT_T',
+ msg="Checking whether we have ucontext_t",
+ headers='signal.h sys/ucontext.h')
+
# these may be builtins, so we need the link=False strategy
conf.CHECK_FUNCS('strdup memmem printf memset memcpy memmove strcpy strncpy bzero', link=False)