added getxidtype.c
[util-vserver.git] / util-vserver / configure.ac
index 3ec2226..438aaf0 100644 (file)
@@ -24,14 +24,17 @@ dnl distribution terms that you use for the rest of that program.
 dnl  
 
 AC_PREREQ(2.57)
-AC_INIT(util-vserver, 0.30.195, enrico.scholz@informatik.tu-chemnitz.de)
+AC_INIT(util-vserver, 0.30.204, enrico.scholz@informatik.tu-chemnitz.de)
 AC_CONFIG_SRCDIR([src/capchroot.c])
 AC_CONFIG_HEADER([config.h])
 
 AM_INIT_AUTOMAKE([1.9 gnits dist-bzip2 subdir-objects])
 AM_MAINTAINER_MODE
 
-AC_SUBST(GPG_KEY, "0x7AE5D4B5922F7AF9!")
+AC_CANONICAL_BUILD
+AC_CANONICAL_HOST
+
+AC_SUBST(GPG_KEY, "0xFFD316AC53ACA43A!")
 
 # Checks for programs.
 AC_PROG_CXX
@@ -44,29 +47,23 @@ AM_PROG_CC_C_O
 ENSC_CXXCOMPILER
 ENSC_C99COMPILER
 
-check_paths=$PATH:/sbin:/usr/sbin:/usr/local/sbin
-AC_PATH_PROGS(AWK,     [awk],     [awk],         [ $check_paths ])
-AC_PATH_PROGS(GREP,    [grep],    [grep],        [ $check_paths ])
-AC_PATH_PROGS(IP,      [ip],      [ip],          [ $check_paths ])
-AC_PATH_PROGS(MOUNT,   [mount],   [/bin/mount],  [ $check_paths ])
-AC_PATH_PROGS(UMOUNT,  [umount],  [/bin/umount], [ $check_paths ])
-AC_PATH_PROGS(NICE,    [nice],    [nice],        [ $check_paths ])
-AC_PATH_PROGS(VCONFIG, [vconfig], [vconfig],     [ $check_paths ])
-AC_PATH_PROGS(WC,      [wc],      [wc],          [ $check_paths ])
-AC_PATH_PROGS(PS,      [ps],      [/bin/ps],     [ $check_paths ])
-AC_PATH_PROGS(MODPROBE, [modprobe], [/sbin/modprobe], [ $check_paths ])
-AC_PATH_PROGS(RMMOD,    [rmmod],    [/sbin/rmmod],    [ $check_paths ])
-AC_PATH_PROGS(NAMEIF,   [nameif],   [/sbin/nameif],   [ $check_paths ])
-AC_PATH_PROGS(IPTABLES, [iptables], [/sbin/iptables], [ $check_paths ])
-AC_PATH_PROGS(ENV,      [env],      [/usr/bin/env])
-AC_PATH_PROGS(SED,      [sed],      [sed])
-AC_PATH_PROGS(CMP,      [cmp],      [cmp])
-AC_PATH_PROGS(WGET,     [wget],     [wget])
-AC_PATH_PROGS(DOXYGEN,  [doxygen],  [:])
-AC_PATH_PROGS(TAR,      [tar])
-AC_PATH_PROGS(XSLTP,    [xsltp])
-
-AM_CONDITIONAL(HAVE_XSLTP, test "$XSLTP")
+ENSC_SET_SEARCHPATH([$PATH:/sbin:/usr/sbin:/usr/local/sbin])
+ENSC_PATHPROG_STANDARD_TOOLS
+
+ENSC_PATHPROG(IP,        ip,,      [Usually, this tool is shipped in the 'iproute' or 'iproute2' package of your distribution])
+ENSC_PATHPROG(IPTABLES,  iptables)
+ENSC_PATHPROG(MODPROBE,  modprobe)
+ENSC_PATHPROG(NAMEIF,    nameif)
+ENSC_PATHPROG(RMMOD,     rmmod)
+ENSC_PATHPROG(VCONFIG,   vconfig,, [See http://www.candelatech.com/~greear/vlan.html; usually this tool is shipped in the 'vconfig' or 'vlan' package of your distribution])
+ENSC_PATHPROG(WGET,      wget)
+
+ENSC_PATHPROG(DOXYGEN,   doxygen,  [:])
+ENSC_PATHPROG(XSLTP,     xsltp,    [:])
+ENSC_PATHPROG(XSLTPROC,  xsltproc, [:])
+
+
+AM_CONDITIONAL(HAVE_XSLTP, test "$XSLTP" != ':')
        
 
 ENSC_CHECK_CC_FLAG([-std=c99 -Wall -pedantic -W])
@@ -109,6 +106,7 @@ if test x"$ensc_have_dietlibc" = xno; then
        AC_MSG_WARN([***                                                         ***])
        AM_CONDITIONAL(USE_DIETLIBC_COMPAT, false)
 else
+       ENSC_DIETLIBC_SANITYCHECK
        ENSC_DIETLIBC_NEED_COMPAT(USE_DIETLIBC_COMPAT)
 fi
 
@@ -184,6 +182,8 @@ AC_CHECK_DECLS(MS_MOVE,,,[#include <linux/fs.h>])
 AC_CHECK_TYPES(xid_t,,,[#include <sys/types.h>])
 AC_CHECK_TYPES(nid_t,,,[#include <sys/types.h>])
 
+AC_CHECK_HEADERS([sys/capability.h])
+
 dnl BIG HACK! Do some autodetection here!
 AC_DEFINE(UTMP_GID, [22], [The utmp gid-number])