Skip to content
Snippets Groups Projects
Commit fcfdd227 authored by Brian J. Murrell's avatar Brian J. Murrell
Browse files

b=17952

i=wangyb
i=adilger

Given that configure won't work with a relative pathname passed to the
--with-linux option, error out if the user provides a relative path.
parent cb919da6
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,13 @@ AC_DEFUN([LB_LINUX_PATH],
AC_ARG_WITH([linux],
AC_HELP_STRING([--with-linux=path],
[set path to Linux source (default=/usr/src/linux)]),
[LINUX=$with_linux],
[
if ! [[[ $with_linux = /* ]]]; then
AC_MSG_ERROR([You must provide an absolute pathname to the --with-linux= option.])
else
LINUX=$with_linux
fi
],
[LINUX=/usr/src/linux])
AC_MSG_RESULT([$LINUX])
AC_SUBST(LINUX)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment