configure: Convert --with-l26=<dir> argument to absolute path.
authorBen Pfaff <blp@nicira.com>
Tue, 13 Apr 2010 22:08:37 +0000 (15:08 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 14 Apr 2010 17:25:27 +0000 (10:25 -0700)
If the argument to --with-l26 is given as a relative pathname, then if
configuration succeeds, the build will fail, because the current directory
during the kernel build is different from that at configuration time.
Avoid the problem by converting the argument to an absolute path if
necessary.

acinclude.m4

index abbc57e61c83e0bce84b77a7fcd3345edd30d7df..81e9948807f765afce9e2e1870e59eb880b67a2d 100644 (file)
@@ -24,6 +24,10 @@ AC_DEFUN([OVS_CHECK_LINUX26], [
               [KBUILD26="$withval"], [KBUILD26=])dnl
   if test -n "$KBUILD26"; then
     KBUILD26=`eval echo "$KBUILD26"`
+    case $KBUILD26 in
+        /*) ;;
+        *) KBUILD26=`pwd`/$KBUILD26 ;;
+    esac
 
     # The build directory is what the user provided.
     # Make sure that it exists.