aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-07-01 16:20:11 -0700
committerBrian Behlendorf <[email protected]>2010-07-01 16:38:08 -0700
commit1814251453c8140f50170ad29d9105c1273d7e08 (patch)
tree07b48a17d82723d276f04c0c0ab03c16e65b3df5 /config
parent7119bf704490bcb9abca9fa80214313024d381a2 (diff)
Require gawk the usermode helper fails with awk
For some reason when awk invoked by the usermode helper the command always fails. Interestingly gawk does not suffer from this problem which is why I never observed this failure since the distro I tested with all had gawk installed instead of awk. Anyway, the simplest thing to do here is to just make gawk mandatory. I've added a configure check for gawk specifically and have updated the command to call gawk not awk.
Diffstat (limited to 'config')
-rw-r--r--config/spl-build.m411
1 files changed, 10 insertions, 1 deletions
diff --git a/config/spl-build.m4 b/config/spl-build.m4
index 40f072bf7..4d6109a0e 100644
--- a/config/spl-build.m4
+++ b/config/spl-build.m4
@@ -191,7 +191,16 @@ AC_DEFUN([SPL_AC_KERNEL], [
dnl #
dnl # Default SPL user configuration
dnl #
-AC_DEFUN([SPL_AC_CONFIG_USER], [])
+AC_DEFUN([SPL_AC_CONFIG_USER], [
+ dnl # Explicitly check for gawk, we require it for the the usermode
+ dnl # helper. For some reason the standard awk command does not
+ dnl # behave correctly when invoked from the usermode helper.
+ AS_IF([test "x$AWK" != xgawk], [
+ AC_MSG_ERROR([
+ *** Required util gawk missing. Please install the required
+ *** gawk package for your distribution and try again.])
+ ])
+])
AC_DEFUN([SPL_AC_LICENSE], [
AC_MSG_CHECKING([spl license])