diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2014-04-24 17:39:12 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2014-04-24 17:47:20 +0200 |
| commit | c0412fedf85034d9e00e84e5ae5c415df1df6284 (patch) | |
| tree | 81aedaba76220d84046f131d594bd430c8bd0637 | |
| parent | 99fa3024b8a77d1a1fc72487252f3bc32f6f1082 (diff) | |
build: Add missing function checks for optional daemon features.
* config-daemon.ac: Check for lchown, posix_fallocate, vfork,
sched_setaffinity, statvfs, nanosleep, and strsignal. As a side
effect, this enables daemon features depending on the corresponding
feature test macros.
| -rw-r--r-- | config-daemon.ac | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/config-daemon.ac b/config-daemon.ac index 1169bb6ef41..08a72a0c4c7 100644 --- a/config-daemon.ac +++ b/config-daemon.ac | |||
| @@ -67,9 +67,14 @@ if test "x$guix_build_daemon" = "xyes"; then | |||
| 67 | AC_CHECK_FUNCS([chroot unshare]) | 67 | AC_CHECK_FUNCS([chroot unshare]) |
| 68 | AC_CHECK_HEADERS([sched.h sys/param.h sys/mount.h]) | 68 | AC_CHECK_HEADERS([sched.h sys/param.h sys/mount.h]) |
| 69 | 69 | ||
| 70 | dnl Check for lutimes, optionally used for changing the mtime of | 70 | dnl lutimes and lchown: used when canonicalizing store items. |
| 71 | dnl symlinks. | 71 | dnl posix_fallocate: used when extracting archives. |
| 72 | AC_CHECK_FUNCS([lutimes]) | 72 | dnl vfork: to speed up spawning of helper programs. |
| 73 | dnl sched_setaffinity: to improve RPC locality. | ||
| 74 | dnl statvfs: to detect disk-full conditions. | ||
| 75 | dnl strsignal: for error reporting. | ||
| 76 | AC_CHECK_FUNCS([lutimes lchown posix_fallocate vfork sched_setaffinity \ | ||
| 77 | statvfs nanosleep strsignal]) | ||
| 73 | 78 | ||
| 74 | dnl Check whether the store optimiser can optimise symlinks. | 79 | dnl Check whether the store optimiser can optimise symlinks. |
| 75 | AC_MSG_CHECKING([whether it is possible to create a link to a symlink]) | 80 | AC_MSG_CHECKING([whether it is possible to create a link to a symlink]) |
