direct-io.hg
changeset 8649:85dd812ca054
Added dependency check for lilo in configure.ac for vmx enabled builds. Must
have lilo version 22.7 or greater.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
have lilo version 22.7 or greater.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
author | stekloff@elm3b216.beaverton.ibm.com |
---|---|
date | Tue Jan 24 17:59:33 2006 +0100 (2006-01-24) |
parents | 018e6dc18f97 |
children | 246b6444c643 |
files | tools/xm-test/configure.ac |
line diff
1.1 --- a/tools/xm-test/configure.ac Tue Jan 24 17:58:43 2006 +0100 1.2 +++ b/tools/xm-test/configure.ac Tue Jan 24 17:59:33 2006 +0100 1.3 @@ -7,6 +7,7 @@ AM_INIT_AUTOMAKE([1.7 foreign]) 1.4 # Check for dependencies 1.5 AC_PROG_CC 1.6 #AC_PROG_INSTALL 1.7 +AC_CHECK_PROG([LILO], lilo, lilo, "no", [$PATH]) 1.8 1.9 # Right now, we can assume that the lib/ and ramdisk/ directories 1.10 # are two levels above the tests 1.11 @@ -22,6 +23,18 @@ AC_ARG_ENABLE(vmx-support, 1.12 ENABLE_VMX=False 1.13 ]) 1.14 1.15 +if test "x$ENABLE_VMX" = "xTrue"; then 1.16 + if test "$LILO" = "no"; then 1.17 + AC_MSG_ERROR([lilo not found 1.18 +lilo version 22.7 or greater must be installed for testing with vmx enabled.]) 1.19 + else 1.20 + pass=`$LILO -V | sed -e "s/LILO version //" | awk -F "." '{if ($1 >=22 && $2 >= 7) print "true"; else print "false"}'` 1.21 + if test "$pass" != "true"; then 1.22 + AC_MSG_ERROR(Lilo version must be equal or greater to 22.7+.) 1.23 + fi 1.24 + fi 1.25 +fi 1.26 + 1.27 AM_CONDITIONAL(VMX, test x$ENABLE_VMX = xTrue) 1.28 AC_SUBST(ENABLE_VMX) 1.29