From: Lucas De Marchi Date: Wed, 3 Jan 2018 02:17:51 +0000 (-0800) Subject: build: use tool from configure X-Git-Tag: v25~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d9c7e37c95da12bcff0e1ba21a45d3efb8b9041;p=thirdparty%2Fkmod.git build: use tool from configure This way we make sure the tool will be the one we actually configured before going through sudo. --- diff --git a/Makefile.am b/Makefile.am index b7ee6b18..3ea42747 100644 --- a/Makefile.am +++ b/Makefile.am @@ -504,5 +504,5 @@ tar-sync: kmod-$(VERSION).tar.xz kmod-$(VERSION).tar.sign # ------------------------------------------------------------------------------ mkosi: - -mkdir $(top_srcdir)/testsuite/mkosi/mkosi.cache - mkosi -C $(top_srcdir)/testsuite/mkosi --build-sources ../../ -fi + -$(MKDIR_P) $(top_srcdir)/testsuite/mkosi/mkosi.cache + $(MKOSI) -C $(top_srcdir)/testsuite/mkosi --build-sources ../../ -fi diff --git a/configure.ac b/configure.ac index ca94bf8c..932e87da 100644 --- a/configure.ac +++ b/configure.ac @@ -31,6 +31,7 @@ AC_PROG_MKDIR_P AC_PROG_LN_S PKG_PROG_PKG_CONFIG AC_PATH_PROG([XSLTPROC], [xsltproc]) +AC_PATH_PROG([MKOSI], [mkosi]) AC_PROG_CC_C99