diff options
author | Werner Koch <wk@gnupg.org> | 1998-09-28 19:25:17 +0000 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1998-09-28 19:25:17 +0000 |
commit | 8c9d29e2648984257d603334cb67375fa7bab20f (patch) | |
tree | 70c84a89ab52be77f86a3d88594e65ddc7b2cf64 /acinclude.m4 | |
parent | 41d07973ca468dd49ecd2e06429a72b9b3756949 (diff) | |
download | libgcrypt-8c9d29e2648984257d603334cb67375fa7bab20f.tar.gz |
*** empty log message ***
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index b6c1f656..f540edc6 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -116,6 +116,7 @@ define(WK_CHECK_CACHE, ###################################################################### # Check for SysV IPC (from GIMP) +# And see whether we have a SHM_LOCK (FreeBSD does not have it). ###################################################################### dnl WK_CHECK_IPC dnl @@ -150,6 +151,15 @@ define(WK_CHECK_IPC, AC_MSG_RESULT(yes), AC_MSG_RESULT(no), AC_MSG_RESULT(assuming no)) + AC_MSG_CHECKING(whether SHM_LOCK is available) + AC_TRY_COMPILE([#include <sys/types.h> + #include <sys/ipc.h> + #include <sys/shm.h>],[ + int foo( int shm_id ) { shmctl(shm_id, SHM_LOCK, 0); } + ], + AC_DEFINE(IPC_HAVE_SHM_LOCK) + AC_MSG_RESULT(yes), + AC_MSG_RESULT(no)) fi ]) @@ -165,6 +175,7 @@ define(WK_CHECK_MLOCK, if test "$ac_cv_func_mlock" = "yes"; then AC_MSG_CHECKING(whether mlock is broken) AC_TRY_RUN([ + #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <sys/mman.h> |