From 1007b4dc2d76c77cf7990db2822475f06f1c89f5 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Wed, 29 Dec 2004 02:57:50 +0000 Subject: [PATCH] handle errors when trying to get kernel flags --- m4/as-linux.m4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/m4/as-linux.m4 b/m4/as-linux.m4 index 31bf5db4..d774476a 100644 --- a/m4/as-linux.m4 +++ b/m4/as-linux.m4 @@ -558,6 +558,10 @@ modules: @echo LINUX_AS=\"\$(AS)\" EOF make -C ${LINUX_DIR} SUBDIRS=${tmpdir} modules | grep ^LINUX_ >${tmpdir}/ack + if (($?)); then + echo make modules with LINUX_DIR=$(LINUX_DIR) failed. + exit 1 + fi . ${tmpdir}/ack rm -rf ${tmpdir} -- 2.26.2