3db510495aebf0a9e5ae8964c8e4ed8d879ba25e
[kai/samba.git] / source3 / tests / summary.c
1 #include <stdio.h>
2
3 main()
4 {
5 #ifndef HAVE_FCNTL_LOCK
6         printf("ERROR: No locking available. Running Samba would be unsafe\n");
7         exit(1);
8 #endif
9
10 #if !(defined(HAVE_SYSV_IPC) || defined(HAVE_SHARED_MMAP))
11         printf("WARNING: no shared memory. Running with slow locking code\n");
12 #endif
13
14 #ifdef HAVE_TRAPDOOR_UID
15         printf("WARNING: trapdoor uid system - Samba may not operate correctly\n");
16 #endif
17
18 #if !(defined(HAVE_NETMASK_IFCONF) || defined(HAVE_NETMASK_IFREQ) || defined(HAVE_NETMASK_AIX))
19         printf("WARNING: No automated netmask determination - use an interfaces line\n");
20 #endif
21
22 #if !(defined(STAT_STATVFS) || defined(STAT_STATVFS64) || defined(STAT_STATFS3_OSF1) || defined(STAT_STATFS2_BSIZE) || defined(STAT_STATFS4) || defined(STAT_STATFS2_FSIZE) || defined(STAT_STATFS2_FS_DATA))
23         printf("ERROR: No disk free routine!\n");
24         exit(1);
25 #endif
26
27 #if !((defined(HAVE_RANDOM) || defined(HAVE_RAND)) && (defined(HAVE_SRANDOM) || defined(HAVE_SRAND)))
28     printf("ERROR: No random or srandom routine!\n");
29     exit(1);
30 #endif
31
32         exit(0);
33 }