From 9675cf654d86464344e56705db7a71ea17f76c6f Mon Sep 17 00:00:00 2001 From: Daniel Lange Date: Mon, 11 Apr 2016 13:00:21 +0200 Subject: Imported Upstream version 0.6.6+svn20070915 --- configure.ac | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 09d99ec..038343a 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) -AC_INIT([htop],[0.6.3],[loderunner@users.sourceforge.net]) +AC_INIT([htop],[0.6.6],[loderunner@users.sourceforge.net]) AM_INIT_AUTOMAKE AC_CONFIG_SRCDIR([htop.c]) AC_CONFIG_HEADER([config.h]) @@ -15,7 +15,7 @@ AC_CHECK_LIB([ncurses], [refresh], [], [missing_libraries="$missing_libraries li AC_CHECK_LIB([m], [ceil], [], [missing_libraries="$missing_libraries libm"]) if test ! -z "$missing_libraries"; then - AC_MSG_ERROR([missing libraries:$missing_headers]) + AC_MSG_ERROR([missing libraries: $missing_libraries]) fi # Checks for header files. @@ -26,7 +26,7 @@ AC_CHECK_HEADERS([stdlib.h string.h strings.h sys/param.h sys/time.h unistd.h cu ]) if test ! -z "$missing_headers"; then - AC_MSG_ERROR([missing headers:$missing_headers]) + AC_MSG_ERROR([missing headers: $missing_headers]) fi # Checks for typedefs, structures, and compiler characteristics. @@ -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.)) -- cgit v1.2.3