r15321: Reduce the size of rewrite.m4 a bit more
[samba.git] / source / include / system / config.m4
1 # filesys
2 AC_HEADER_DIRENT 
3 AC_CHECK_HEADERS(fcntl.h sys/fcntl.h sys/acl.h sys/resource.h sys/ioctl.h sys/mode.h sys/filio.h sys/fs/s5param.h sys/filsys.h )
4
5 # select
6 AC_CHECK_HEADERS(sys/select.h)
7
8 # time
9 AC_CHECK_HEADERS(sys/time.h utime.h)
10 AC_HEADER_TIME
11
12 # wait
13 AC_HEADER_SYS_WAIT
14 AC_CACHE_CHECK([for sig_atomic_t type],samba_cv_sig_atomic_t, [
15     AC_TRY_COMPILE([
16 #include <sys/types.h>
17 #if STDC_HEADERS
18 #include <stdlib.h>
19 #include <stddef.h>
20 #endif
21 #include <signal.h>],[sig_atomic_t i = 0],
22         samba_cv_sig_atomic_t=yes,samba_cv_sig_atomic_t=no)])
23 if test x"$samba_cv_sig_atomic_t" = x"yes"; then
24    AC_DEFINE(HAVE_SIG_ATOMIC_T_TYPE,1,[Whether we have the atomic_t variable type])
25 fi
26
27 # capability
28 AC_CHECK_HEADERS(sys/capability.h)
29
30 # passwd
31 AC_CHECK_HEADERS(grp.h sys/id.h compat.h shadow.h sys/priv.h pwd.h sys/security.h)
32
33 # iconv
34 AC_CHECK_HEADERS(ctype.h locale.h)
35
36 # glob
37 AC_CHECK_HEADERS(fnmatch.h)
38
39 # shmem
40 AC_CHECK_HEADERS(sys/ipc.h sys/mman.h sys/shm.h )
41
42 # terminal
43 AC_CHECK_HEADERS(termios.h termio.h sys/termio.h )