diff options
author | Brian Behlendorf <[email protected]> | 2009-07-02 10:47:28 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2009-07-02 10:47:28 -0700 |
commit | bb339d067054174f218ead91105472558f278fc2 (patch) | |
tree | f9016b5d1b0b45a22256e15f96af9afb51733918 /config | |
parent | 86933a6e510bb00edb097095ffe3deb7a4fbe533 (diff) |
Cleanly handle --with-linux=NONE option when used to generate source
rpms. These should not be fatal because we actually don't need them
until we build the source rpm. When doing mock builds this is
important because these dependent rpms will only be installed if
they are specificed in the source rpms spec file.
Diffstat (limited to 'config')
-rw-r--r-- | config/spl-build.m4 | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4 index 134831978..eee9a783f 100644 --- a/config/spl-build.m4 +++ b/config/spl-build.m4 @@ -67,11 +67,16 @@ AC_DEFUN([SPL_AC_CONFIG_KERNEL], [ ]) AC_DEFUN([SPL_AC_MODULE_SYMVERS], [ + modpost=$LINUX/scripts/Makefile.modpost AC_MSG_CHECKING([kernel file name for module symbols]) - if grep -q Modules.symvers $LINUX/scripts/Makefile.modpost; then - LINUX_SYMBOLS=Modules.symvers + if test -f "$modpost"; then + if grep -q Modules.symvers $modpost; then + LINUX_SYMBOLS=Modules.symvers + else + LINUX_SYMBOLS=Module.symvers + fi else - LINUX_SYMBOLS=Module.symvers + LINUX_SYMBOLS=NONE fi AC_MSG_RESULT($LINUX_SYMBOLS) AC_SUBST(LINUX_SYMBOLS) |