From: Subrata <sub...@us...> - 2009-07-06 15:46:19
|
Update of /cvsroot/ltp/ltp In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv7394/ltp Modified Files: configure.ac Log Message: cgroups: conditionally enable building cgroup tests: controllers tests gets included into default ltp build if "/proc/cgroup" exists. It stops the ltp build in realtime kernel environment where kernel is new and supports cgroups, but necessary file "linux/cgroupstats.h" may not exist in the base OS (like RHEL5.3). So configure command enables the build, but actual build fails, due to missing header file. Below patch proposes new symbol LTP_CHECK_CGROUPSTATS to check for header file "linux/cgroupstats.h" and include controllers in the list of tests to build. Tested the patch in non-RT as well as RT environment for the changes. Signed-off-by: Gowrishankar <gow...@in...>. Index: configure.ac =================================================================== RCS file: /cvsroot/ltp/ltp/configure.ac,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** configure.ac 25 May 2009 15:01:45 -0000 1.13 --- configure.ac 6 Jul 2009 15:34:10 -0000 1.14 *************** *** 22,25 **** --- 22,26 ---- LTP_CHECK_CRYPTO LTP_CHECK_TASKSTATS + LTP_CHECK_CGROUPSTATS AC_OUTPUT |