diff options
author | loderunner <loderunner@63cc0a6c-1f0e-0410-841e-f6a342073da8> | 2007-08-10 05:07:14 +0000 |
---|---|---|
committer | loderunner <loderunner@63cc0a6c-1f0e-0410-841e-f6a342073da8> | 2007-08-10 05:07:14 +0000 |
commit | 1c92f12fadf486f2138bcd9cf8c3b7bd933e24a8 (patch) | |
tree | c074c69432b324827825a25bdc7710f7406b42c7 /configure.ac | |
parent | 47b1d0107e3c9159fd9f8be2d551bd7b681f849a (diff) | |
download | htop-1c92f12fadf486f2138bcd9cf8c3b7bd933e24a8.tar.gz |
OpenVZ support, contributed by Sergey Lychko
git-svn-id: svn://svn.code.sf.net/p/htop/code/trunk@99 63cc0a6c-1f0e-0410-841e-f6a342073da8
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 24f67f1..038343a 100644 --- a/configure.ac +++ b/configure.ac @@ -58,6 +58,11 @@ AC_ARG_WITH(proc, [ --with-proc=DIR Location of a Linux-compatible proc fi fi, AC_DEFINE(PROCDIR, "/proc", [Path of proc filesystem])) +AC_ARG_ENABLE(openvz, [AC_HELP_STRING([--enable-openvz], [enable OpenVZ support])], ,enable_openvz="no") +if test "x$enable_openvz" = xyes; then + AC_DEFINE(HAVE_OPENVZ, 1, [Define if openvz support enabled.]) +fi + AC_CHECK_FILE($PROCDIR/stat,,AC_MSG_ERROR(Cannot find /proc/stat. Make sure you have a Linux-compatible /proc filesystem mounted. See the file README for help.)) AC_CHECK_FILE($PROCDIR/meminfo,,AC_MSG_ERROR(Cannot find /proc/meminfo. Make sure you have a Linux-compatible /proc filesystem mounted. See the file README for help.)) |