summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2021-02-09 17:57:57 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-02-09 18:00:10 +0100
commitcfaf1849ecbdfb0bdf0fc7312271d25bb32ba38d (patch)
treed8bdf548adf274c1e797f9f2baaad2842d7693e7 /configure.ac
parent0e48e14e50ab765c957f593e42567e627bb53f8d (diff)
Warn about missing mig
* configure.ac (MIG): Do not default to mig, and warn when this is missing. Advertise the MIG variable.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 7 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 806a1da1..5d0ce2a3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -89,7 +89,13 @@ AC_CHECK_TOOL([AR], [ar])
AC_CHECK_TOOL([LD], [ld])
AC_CHECK_TOOL([NM], [nm])
-AC_CHECK_TOOL([MIG], [mig], [mig])
+AC_CHECK_TOOL([MIG], [mig], [no])
+AC_ARG_VAR([MIG], [Path to the mig tool])
+
+if test x$MIG = xno
+then
+ AC_MSG_WARN([mig was not found, we will not be able to build a kernel, only install headers. Install or build mig against them, and run configure again. If you already did so, perhaps you need to specify the path with MIG=])
+fi
dnl Needed for the Automake option `subdir-objects'.
AM_PROG_CC_C_O