aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-07-25 17:51:26 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-07-25 17:51:26 +0000
commit2640c9834f9783d13d7cec3e771a1c606e2cd342 (patch)
tree5fbec3309ceb05211f320981821769a88460529d
parent537dc5558eae78bf025237849ce44132d2c55cea (diff)
downloadpaludis-2640c9834f9783d13d7cec3e771a1c606e2cd342.tar.gz
paludis-2640c9834f9783d13d7cec3e771a1c606e2cd342.tar.xz
Check that eselect and required modules are available
-rw-r--r--configure.ac20
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 0e6e0d1..a581f82 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1129,6 +1129,26 @@ else
fi
dnl }}}
+dnl {{{ check for eselect
+AC_MSG_CHECKING([for eselect])
+if eselect version >/dev/null 2>/dev/null ; then
+ AC_MSG_RESULT([yes])
+else
+ AC_MSG_RESULT([no])
+ AC_MSG_ERROR([eselect is required])
+fi
+
+for m in env news ; do
+ AC_MSG_CHECKING([for eselect $m])
+ if eselect $m version >/dev/null 2>/dev/null ; then
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ AC_MSG_ERROR([eselect $m is required])
+ fi
+done
+dnl }}}
+
dnl {{{ is ldconfig gnu ldconfig
AC_MSG_CHECKING([if ldconfig is GNU])
AC_ARG_ENABLE([gnu-ldconfig],