From: Ben Pfaff Date: Tue, 13 Apr 2010 22:08:37 +0000 (-0700) Subject: configure: Convert --with-l26= argument to absolute path. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b6d72fc776179703ba2cc8d8b3ea878a29cad61;p=openvswitch configure: Convert --with-l26= argument to absolute path. 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. --- diff --git a/acinclude.m4 b/acinclude.m4 index abbc57e6..81e99488 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -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.