assume that /sys/fs/cgroup is always per_ss=1
[util-vserver.git] / m4 / ensc_personality.m4
1 dnl $Id$
2
3 dnl Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
4 dnl  
5 dnl This program is free software; you can redistribute it and/or modify
6 dnl it under the terms of the GNU General Public License as published by
7 dnl the Free Software Foundation; version 2 of the License.
8 dnl  
9 dnl This program is distributed in the hope that it will be useful,
10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 dnl GNU General Public License for more details.
13 dnl  
14 dnl You should have received a copy of the GNU General Public License
15 dnl along with this program; if not, write to the Free Software
16 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18 dnl Usage: ENSC_CHECK_PERSONALITY_FLAGS
19 AC_DEFUN([ENSC_CHECK_PERSONALITY_FLAGS],
20 [
21         AC_MSG_CHECKING([for declarations in <linux/personality.h>])
22         AC_MSG_RESULT([])
23
24         AC_LANG_PUSH(C)
25         AC_CHECK_DECLS([MMAP_PAGE_ZERO, ADDR_LIMIT_32BIT, SHORT_INODE,
26                         WHOLE_SECONDS, STICKY_TIMEOUTS, ADDR_LIMIT_3GB],
27                        [],[],
28                        [
29 #include <linux/personality.h>
30                         ])
31
32         AC_CHECK_DECLS([PER_LINUX, PER_LINUX_32BIT, PER_SVR4, PER_SVR3,
33                         PER_SCOSVR3, PER_OSR5, PER_WYSEV386, PER_ISCR4,
34                         PER_BSD, PER_SUNOS, PER_XENIX, PER_LINUX32,
35                         PER_LINUX32_3GB, PER_IRIX32, PER_IRIXN32,
36                         PER_IRIX64, PER_RISCOS, PER_SOLARIS, PER_UW7,
37                         PER_HPUX, PER_OSF4],
38                        [], [],
39                        [
40 #include <linux/personality.h>
41                         ])
42         AC_LANG_POP
43 ])
44