X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=m4%2Fensc_personality.m4;fp=m4%2Fensc_personality.m4;h=69340e4d37c8d8965f5627030f1e9ccf9237974b;hb=8cf13bb177d92c93eb73dc8939777150536c2d00;hp=0000000000000000000000000000000000000000;hpb=6bf3f95de36c804c97716b2d0bdf10680c559044;p=util-vserver.git diff --git a/m4/ensc_personality.m4 b/m4/ensc_personality.m4 new file mode 100644 index 0000000..69340e4 --- /dev/null +++ b/m4/ensc_personality.m4 @@ -0,0 +1,44 @@ +dnl $Id: ensc_personality.m4,v 1.1 2005/07/15 19:40:15 ensc Exp $ + +dnl Copyright (C) 2002 Enrico Scholz +dnl +dnl This program is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; version 2 of the License. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +dnl GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program; if not, write to the Free Software +dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +dnl Usage: ENSC_CHECK_PERSONALITY_FLAGS +AC_DEFUN([ENSC_CHECK_PERSONALITY_FLAGS], +[ + AC_MSG_CHECKING([for declarations in ]) + AC_MSG_RESULT([]) + + AC_LANG_PUSH(C) + AC_CHECK_DECLS([MMAP_PAGE_ZERO, ADDR_LIMIT_32BIT, SHORT_INODE, + WHOLE_SECONDS, STICKY_TIMEOUTS, ADDR_LIMIT_3GB], + [],[], + [ +#include + ]) + + AC_CHECK_DECLS([PER_LINUX, PER_LINUX_32BIT, PER_SVR4, PER_SVR3, + PER_SCOSVR3, PER_OSR5, PER_WYSEV386, PER_ISCR4, + PER_BSD, PER_SUNOS, PER_XENIX, PER_LINUX32, + PER_LINUX32_3GB, PER_IRIX32, PER_IRIXN32, + PER_IRIX64, PER_RISCOS, PER_SOLARIS, PER_UW7, + PER_HPUX, PER_OSF4], + [], [], + [ +#include + ]) + AC_LANG_POP +]) +